fix root logger usage

This commit is contained in:
Jakob Ketterl 2019-05-11 00:38:22 +02:00
parent b9d2654669
commit c7e4d6b976

View File

@ -358,9 +358,9 @@ class dsp:
def watch_thread():
rc = self.process.wait()
logging.debug("dsp thread ended with rc=%d", rc)
logger.debug("dsp thread ended with rc=%d", rc)
if (rc == 0 and self.running and not self.modification_lock.locked()):
logging.debug("restarting since rc = 0, self.running = true, and no modification")
logger.debug("restarting since rc = 0, self.running = true, and no modification")
self.restart()
threading.Thread(target = watch_thread).start()