From ae4c54103dfb2f4e79340077ac8708e6e473505a Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 19 Mar 2012 12:17:40 -0400 Subject: [PATCH] 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. --- pycomedi/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.26.2