Don't set log levels for pycomedi.LOG handlers.
authorW. Trevor King <wking@drexel.edu>
Mon, 19 Mar 2012 16:17:40 +0000 (12:17 -0400)
committerW. Trevor King <wking@drexel.edu>
Mon, 19 Mar 2012 16:17:46 +0000 (12:17 -0400)
That's too much granularity for the default situation, where there is
only one handler and we can use the logger's level to control
verbosity.

pycomedi/__init__.py

index 673ef88db46f7e58e9383525495bd7d03fbea4af..cd118e13c84d17d8e74cd78f8c57f002f8483573 100644 (file)
@@ -25,9 +25,8 @@ __version__ = '0.4'
 LOG = _logging.getLogger('pycomedi')
 "Pycomedi logger"
 
-LOG.setLevel(_logging.DEBUG)
+LOG.setLevel(_logging.WARN)
 h = _logging.StreamHandler()
-h.setLevel(_logging.WARN)
 f = _logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
 h.setFormatter(f)
 LOG.addHandler(h)