Skip to content

Commit 9a73380

Browse files
committed
Logging fixes
1 parent 075ca79 commit 9a73380

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wptagent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import atexit
99
import logging
1010
import logging.handlers
11-
from internal.rfc5424logging import Rfc5424SysLogHandler, logging_context
1211
import os
1312
import platform
1413
import gzip
@@ -490,6 +489,7 @@ def startup(self, detected_browsers):
490489

491490
# Optional imports
492491
self.requires('fontTools', 'fonttools')
492+
self.requires('tzlocal')
493493

494494
# Try patching ws4py with a faster lib
495495
try:
@@ -1091,6 +1091,7 @@ def setup_logging(verbosity=0, log_format=None, log_file=None):
10911091
logging.getLogger().addHandler(err_log)
10921092
else:
10931093
if log_format == "syslog" and log_file is not None:
1094+
from internal.rfc5424logging import Rfc5424SysLogHandler, logging_context
10941095
logger = logging.getLogger()
10951096
logger.setLevel(basic_log_level)
10961097
handler = Rfc5424SysLogHandler( \

0 commit comments

Comments
 (0)