Module: deluge
Branch: master
Commit: 356808b02c5326e54accb2726df409f1542fdc89

Author: Pedro Algarvio <[email protected]>
Date:   Sun Jan  2 16:03:00 2011 +0000

Fix #1470.

---

 deluge/log.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/deluge/log.py b/deluge/log.py
index a5e8f64..2528d15 100644
--- a/deluge/log.py
+++ b/deluge/log.py
@@ -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(

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to