re-add log function

This commit is contained in:
2016-05-18 16:45:42 +02:00
parent 5ab955dffd
commit 92862d8849
+7
View File
@@ -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