summaryrefslogtreecommitdiff
path: root/logging_ext.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2010-09-06 16:23:36 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2010-09-06 16:23:36 +0200
commit8cdcea6c8703e41f045b535b0e3b984d2e28c132 (patch)
tree851f8a23e9645f940b93027838ab3206be4b4ac5 /logging_ext.py
parent20a7af02bbd4a519b2471ab9815da31092798f34 (diff)
downloadlogilab-common-8cdcea6c8703e41f045b535b0e3b984d2e28c132.tar.gz
[logging_ext] fix typo leading to bad log threshold set when not explicitly specified
Diffstat (limited to 'logging_ext.py')
-rw-r--r--logging_ext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/logging_ext.py b/logging_ext.py
index 087e08c..e87aace 100644
--- a/logging_ext.py
+++ b/logging_ext.py
@@ -156,7 +156,7 @@ def init_log(debug=False, syslog=False, logthreshold=None, logfile=None,
# only addHandler and removeHandler method while I would like a setHandler
# method, so do it this way :$
logger.handlers = [handler]
- threshold = get_threshold(debug, logthreshold)
+ logthreshold = get_threshold(debug, logthreshold)
logger.setLevel(logthreshold)
if fmt is None:
fmt = get_formatter(logformat=LOG_FORMAT, logdateformat=LOG_DATE_FORMAT)