X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=blobdiff_plain;f=hippotatd;h=b08ce6673d9cd9373a7025a7908f0f3ef3fc0a97;hp=e2bed4216091b5dec535c299ccf896468969ef64;hb=eb6dcb5af291c1c5457c88979ed4b077a4b28367;hpb=d96f4d70037bcd739dd9674f4fb2f3d38abce956 diff --git a/hippotatd b/hippotatd index e2bed42..b08ce66 100755 --- a/hippotatd +++ b/hippotatd @@ -375,6 +375,10 @@ def daemonise(): elif level == LogLevel.warn : sl = syslog.LOG_WARNING else : sl = syslog.LOG_INFO syslog.syslog(sl,m) + failure = event.get('log_failure') + if failure is not None: + for l in failure.getTraceback().split('\n'): + syslog.syslog(sl,l) glp = twisted.logger.globalLogPublisher glp.addObserver(emit) log_debug(DBG.INIT, 'starting to log to syslog')