From 92862d8849bb7e9f374a7f1b35f6c2307676b72f Mon Sep 17 00:00:00 2001 From: Andreas Wrede Date: Wed, 18 May 2016 16:45:42 +0200 Subject: [PATCH] re-add log function --- hbc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hbc b/hbc index f23e111..bcc7e62 100755 --- a/hbc +++ b/hbc @@ -30,6 +30,13 @@ running = True dorestart = False warned1 = False +def log(msg): + if fdaemon: + syslog.syslog(syslog.LOG_ERR, msg) + else: + print msg + + class NullDevice: def write(self, s): pass