Log file cleanup + improvements

-Don't show queue timeout as error
-Show UTC time and current timezone on pypo startup
This commit is contained in:
Martin Konecny 2012-06-28 12:12:22 -04:00
parent 263ba02481
commit 7f735fe2fa
2 changed files with 13 additions and 1 deletions

View file

@ -2,8 +2,10 @@
Python part of radio playout (pypo)
"""
import time
from optparse import OptionParser
from datetime import datetime
import time
import sys
import signal
import logging
@ -124,6 +126,12 @@ if __name__ == '__main__':
logger.info('# Liquidsoap Scheduled Playout System #')
logger.info('###########################################')
#Although all of our calculations are in UTC, it is useful to know what timezone
#the local machine is, so that we have a reference for what time the actual
#log entries were made
logger.info("Timezone: %s" % time.tzname)
logger.info("UTC time: %s" % datetime.utcnow())
signal.signal(signal.SIGINT, keyboardInterruptHandler)
# initialize