Module: deluge
Branch: chunked-sessionproxy-and-gtkui-speedups
Commit: 9a3bf35cdf2a46e231be2240cc3b9643565603df

Author: Pedro Algarvio <[email protected]>
Date:   Tue May 17 02:45:53 2011 +0100

Include our custom lower log levels into python's logging.

---

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

diff --git a/deluge/log.py b/deluge/log.py
index 390010c..179e03d 100644
--- a/deluge/log.py
+++ b/deluge/log.py
@@ -141,6 +141,8 @@ def setupLogger(level="error", filename=None, filemode="w"):
 
     if logging.getLoggerClass() is not Logging:
         logging.setLoggerClass(Logging)
+        logging.addLevelName(5, 'TRACE')
+        logging.addLevelName(1, 'GARBAGE')
 
     level = levels.get(level, logging.ERROR)
 

-- 
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