From: W. Trevor King Date: Mon, 19 Mar 2012 16:17:40 +0000 (-0400) Subject: Don't set log levels for pycomedi.LOG handlers. X-Git-Tag: 0.5~27 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ae4c54103dfb2f4e79340077ac8708e6e473505a;p=pycomedi.git Don't set log levels for pycomedi.LOG handlers. 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. --- diff --git a/pycomedi/__init__.py b/pycomedi/__init__.py index 673ef88..cd118e1 100644 --- a/pycomedi/__init__.py +++ b/pycomedi/__init__.py @@ -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)