summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-10-30 10:13:46 +0000
committerMark Haines <mark.haines@matrix.org>2014-10-30 10:13:46 +0000
commitfa955cc2a4666c94c2c23dd2d8f8c89b8dd37e9d (patch)
treefbaaef5636779d8f14c68b7f1c0c050c0b0567f7 /synapse/config
parentAdd a request-id to each log line (diff)
downloadsynapse-fa955cc2a4666c94c2c23dd2d8f8c89b8dd37e9d.tar.xz
Pep8 and a few doc strings
Diffstat (limited to 'synapse/config')
-rw-r--r--synapse/config/logger.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/config/logger.py b/synapse/config/logger.py
index 2a59bf9d15..8566296433 100644
--- a/synapse/config/logger.py
+++ b/synapse/config/logger.py
@@ -19,6 +19,7 @@ from twisted.python.log import PythonLoggingObserver
 import logging
 import logging.config
 
+
 class LoggingConfig(Config):
     def __init__(self, args):
         super(LoggingConfig, self).__init__(args)
@@ -52,9 +53,9 @@ class LoggingConfig(Config):
 
             level = logging.INFO
             if self.verbosity:
-               level = logging.DEBUG
+                level = logging.DEBUG
 
-               # FIXME: we need a logging.WARN for a -q quiet option
+            # FIXME: we need a logging.WARN for a -q quiet option
             logger = logging.getLogger('')
             logger.setLevel(level)
             formatter = logging.Formatter(log_format)
@@ -62,7 +63,6 @@ class LoggingConfig(Config):
                 handler = logging.FileHandler(self.log_file)
             else:
                 handler = logging.StreamHandler()
-            print handler
             handler.setFormatter(formatter)
 
             handler.addFilter(LoggingContextFilter(request=""))