From 0b7b9ae55b932f2794a00d3485dd3e485bba24d2 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 26 Jul 2007 20:31:41 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1061 9efc2488-bf62-4759-914b-345cdb29e865 --- src/python/osrf/log.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/python/osrf/log.py b/src/python/osrf/log.py index 187a34d..d87dd5a 100644 --- a/src/python/osrf/log.py +++ b/src/python/osrf/log.py @@ -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 -- 2.11.0