Commit 656a6374 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix r2369: level must be set on logger, not on handler.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2373 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 2eeafe30
......@@ -37,6 +37,6 @@ def setupLog(name='NEO', filename=None, verbose=False):
else:
handler = logging_std.FileHandler(filename)
handler.setFormatter(logging_std.Formatter(fmt))
handler.setLevel(level)
logging.setLevel(level)
logging.addHandler(handler)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment