This commit is contained in:
Pedro Algarvio 2011-01-02 16:03:00 +00:00
parent 1f800bf49a
commit 356808b02c
1 changed files with 2 additions and 1 deletions

View File

@ -141,7 +141,7 @@ def setupLogger(level="error", filename=None, filemode="w"):
if logging.getLoggerClass() is not Logging:
logging.setLoggerClass(Logging)
level = levels.get(level, "error")
level = levels.get(level, logging.ERROR)
rootLogger = logging.getLogger()
@ -162,6 +162,7 @@ def setupLogger(level="error", filename=None, filemode="w"):
)
else:
handler = logging.StreamHandler()
handler.setLevel(level)
formatter = logging.Formatter(