git-svn-id: svn://svn.open-ils.org/ILS-Contrib/constrictor/trunk@946
6d9bc8c9-1ec2-4278-b937-
99fde70a366f
def log_error(msg=''):
if loglevel < 1: return
- sys.stderr.write('Error*: %s\n' % msg)
+ from script import ScriptThread
+ sys.stderr.write('Error[%d]: %s\n' % (ScriptThread.get_thread_id(), msg))
sys.stderr.flush()
def log_info(msg=''):
if loglevel < 2: return
- print 'Info: %s' % msg
+ from script import ScriptThread
+ print 'Info[%d]: %s' % (ScriptThread.get_thread_id(), msg)
def log_debug(msg=''):
if loglevel < 3: return
- print 'Debug: %s' % msg
+ from script import ScriptThread
+ print 'Debug[%d]: %s' % (ScriptThread.get_thread_id(), msg)