Permalink
Browse files

HH-25681 import graypy remade[gdanschin]

  • Loading branch information...
1 parent 801875e commit 588ef49e8929633c600a5916f77fbe266a5021bf @katraev katraev committed Apr 12, 2012
Showing with 9 additions and 6 deletions.
  1. +9 −6 frontik/options.py
View
@@ -1,5 +1,13 @@
import tornado.options
-from graypy import LAN_CHUNK
+try:
+ from graypy import LAN_CHUNK
+ tornado.options.define('graylog_host', "localhost", str)
+ tornado.options.define('graylog_port', 12201, int)
+ tornado.options.define('graylog_chunk_size', LAN_CHUNK, int)
+except ImportError:
+ pass
+
+tornado.options.define('graylog', False, bool)
tornado.options.define('apps', {}, dict)
tornado.options.define('urls', [], list)
@@ -11,11 +19,6 @@
tornado.options.define('syslog_facility', 'user', str)
tornado.options.define('syslog_msg_max_length', 2048, int)
-tornado.options.define('graylog_host', "localhost", str)
-tornado.options.define('graylog_port', 12201, int)
-tornado.options.define('graylog_chunk_size', LAN_CHUNK, int)
-tornado.options.define('graylog', False, bool)
-
tornado.options.define('xml_debug', False, bool)
tornado.options.define('debug', False, bool)
tornado.options.define('debug_login', None, str)

0 comments on commit 588ef49

Please sign in to comment.