Skip to content
Browse files

HH-25681 graylog chunk_size fixed to default

  • Loading branch information...
1 parent 588ef49 commit 3f396475177408ed14f290040c72b929479fc69b @katraev katraev committed
Showing with 7 additions and 12 deletions.
  1. +4 −9 frontik/options.py
  2. +3 −3 frontik/server.py
View
13 frontik/options.py
@@ -1,13 +1,4 @@
import tornado.options
-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)
@@ -28,3 +19,7 @@
tornado.options.define('timeout_multiplier', 1.0, float)
tornado.options.define('executor_pool_size', 1, int)
+
+tornado.options.define('graylog', False, bool)
+tornado.options.define('graylog_host', "localhost", str)
+tornado.options.define('graylog_port', 12201, int)
View
6 frontik/server.py
@@ -29,13 +29,13 @@ def bootstrap_all_logging():
if tornado.options.options.graylog:
try:
- from graypy import GELFHandler
+ from graypy import GELFHandler, WAN_CHUNK
graylog_handler = GELFHandler(tornado.options.options.graylog_host,
- tornado.options.options.graylog_port, tornado.options.options.graylog_chunk_size, False)
+ tornado.options.options.graylog_port, WAN_CHUNK, False)
logging.getLogger().addHandler(graylog_handler)
except ImportError:
- log.error('Cannot import graypy and start graylog logging!')
+ log.error('Graylog option is on, but can not import graypy and start graylog logging!')
for log_channel_name in options.suppressed_loggers:
logging.getLogger(log_channel_name).setLevel(logging.WARN)

0 comments on commit 3f39647

Please sign in to comment.
Something went wrong with that request. Please try again.