Permalink
Browse files

Fixed import for latest Tornado version.

  • Loading branch information...
1 parent f2d1eb5 commit 1a4d3fb636cd55938f9ad2e6b9b872d9d000eb88 @fish2000 committed Mar 30, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 signalqueue/worker/vortex.py
View
5 signalqueue/worker/vortex.py 100644 → 100755
@@ -18,7 +18,8 @@
import tornado.websocket
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
-from tornado.options import define, _LogFormatter
+from tornado.options import define
+from tornado.log import LogFormatter
from signalqueue.utils import json
from signalqueue.worker import queues
from signalqueue.worker.poolqueue import PoolQueue
@@ -138,7 +139,7 @@ def main():
except:
pass
channel = logging.StreamHandler()
- channel.setFormatter(_LogFormatter(color=color))
+ channel.setFormatter(LogFormatter(color=color))
logg.addHandler(channel)
logg.info("YO DOGG.")

0 comments on commit 1a4d3fb

Please sign in to comment.