diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Bcfg2/Logger.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/lib/Bcfg2/Logger.py b/src/lib/Bcfg2/Logger.py index 26c1d52f6..1f4ba7dd0 100644 --- a/src/lib/Bcfg2/Logger.py +++ b/src/lib/Bcfg2/Logger.py @@ -117,13 +117,17 @@ class FragmentingSysLogHandler(logging.handlers.SysLogHandler): except socket.error: continue try: - self.socket.send("Reconnected to syslog") + reconn = copy.copy(record) + reconn.msg = 'Reconnected to syslog' + self.socket.send('<%d>%s\000' % + (self.encodePriority(self.facility, + logging.WARNING), + self.format(reconn))) self.socket.send(msg) except: - """ - If we still fail then drop it. Running bcfg2-server as non-root can - trigger permission denied exceptions. - """ + # If we still fail then drop it. Running + # bcfg2-server as non-root can trigger permission + # denied exceptions. pass def add_console_handler(level=logging.DEBUG): |