Commit fcf83c36 authored by 's avatar

Added patch from bug #1291: add PID to syslog output per syslog convention.

parent 46a832f4
......@@ -87,6 +87,9 @@ from syslog import LOG_INFO, LOG_DEBUG
import os, string
pid_str='[%s]: ' % os.getpid()
class syslogLogger:
""" a syslog Logger """
......@@ -121,4 +124,4 @@ class syslogLogger:
sev=LOG_DEBUG
if self.on:
self.client.log(sum, priority=sev)
self.client.log(sub + pid_str + sum, priority=sev)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment