projects
/
pycomedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b1b563
)
Don't set log levels for pycomedi.LOG handlers.
author
W. Trevor King
<wking@drexel.edu>
Mon, 19 Mar 2012 16:17:40 +0000
(12:17 -0400)
committer
W. 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
patch
|
blob
|
history
diff --git
a/pycomedi/__init__.py
b/pycomedi/__init__.py
index 673ef88db46f7e58e9383525495bd7d03fbea4af..cd118e13c84d17d8e74cd78f8c57f002f8483573 100644
(file)
--- 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)