changeset 217:163cfa384372

enableTwistedLog Ignore-this: 75e28eaa4d1acc2db92144a0620eb9b8
author drewp@bigasterisk.com
date Sun, 03 Jan 2016 02:28:44 -0800
parents 7a1e9ef4c8b2
children f8ffb9d8d982
files lib/logsetup.py
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/logsetup.py	Sun Jan 03 02:28:10 2016 -0800
+++ b/lib/logsetup.py	Sun Jan 03 02:28:44 2016 -0800
@@ -5,3 +5,11 @@
 logging.getLogger('restkit.client').setLevel(logging.WARN)
 log = logging.getLogger()
 log.setLevel(logging.INFO)
+
+def enableTwistedLog():
+    from twisted.python import log as twlog
+    import sys
+    twlog.startLogging(sys.stdout)
+
+    
+