fix root logger usage
This commit is contained in:
parent
b9d2654669
commit
c7e4d6b976
4
csdr.py
4
csdr.py
@ -358,9 +358,9 @@ class dsp:
|
|||||||
|
|
||||||
def watch_thread():
|
def watch_thread():
|
||||||
rc = self.process.wait()
|
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()):
|
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()
|
self.restart()
|
||||||
|
|
||||||
threading.Thread(target = watch_thread).start()
|
threading.Thread(target = watch_thread).start()
|
||||||
|
Loading…
Reference in New Issue
Block a user