cc-4105: updated old media monitor install

This commit is contained in:
Rudi Grinberg 2012-08-14 10:20:40 -04:00
parent 4b6350dc2e
commit 542f78d2df
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
import logging
import time
import sys
from std_err_override import LogWriter
# configure logging
try:
logging.config.fileConfig("logging.cfg")
#need to wait for Python 2.7 for this..
#logging.captureWarnings(True)
logger = logging.getLogger()
LogWriter.override_std_err(logger)
except Exception, e:
print 'Error configuring logging: ', e
sys.exit(1)
while True:
print("testing")
time.sleep(5)