[Opensrf-commits] r1061 - trunk/src/python/osrf

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jul 26 16:32:50 EDT 2007


Author: erickson
Date: 2007-07-26 16:31:41 -0400 (Thu, 26 Jul 2007)
New Revision: 1061

Modified:
   trunk/src/python/osrf/log.py
Log:
making sure error logs are logged to stderr even if syslogging is not an option -- eventually, it should fall back to stderr logging like the C code does

Modified: trunk/src/python/osrf/log.py
===================================================================
--- trunk/src/python/osrf/log.py	2007-07-26 20:30:52 UTC (rev 1060)
+++ trunk/src/python/osrf/log.py	2007-07-26 20:31:41 UTC (rev 1061)
@@ -50,6 +50,8 @@
     try:
         import syslog
     except:
+        if level == OSRF_LOG_ERR:
+            sys.stderr.write('ERR ' + msg)
         return
         
     global loglevel



More information about the opensrf-commits mailing list