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

@ -9,6 +9,8 @@ import telnetlib
import copy
from threading import Thread
from Queue import Empty
from api_clients import api_client
from std_err_override import LogWriter
@ -493,6 +495,8 @@ class PypoFetch(Thread):
message = self.fetch_queue.get(block=True, timeout=self.listener_timeout)
self.handle_message(message)
except Empty, e:
self.logger.info("Queue timeout. Fetching schedule manually")
except Exception, e:
import traceback
top = traceback.format_exc()