making sure error logs are logged to stderr even if syslogging is not an option ...
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 26 Jul 2007 20:31:41 +0000 (20:31 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 26 Jul 2007 20:31:41 +0000 (20:31 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1061 9efc2488-bf62-4759-914b-345cdb29e865

src/python/osrf/log.py

index 187a34d..d87dd5a 100644 (file)
@@ -50,6 +50,8 @@ def __osrfLog(level, msg):
     try:
         import syslog
     except:
+        if level == OSRF_LOG_ERR:
+            sys.stderr.write('ERR ' + msg)
         return
         
     global loglevel