clean up format in fallbackLogger
This commit is contained in:
parent
9e959c3d9e
commit
8e90bd209c
|
@ -83,4 +83,4 @@ def freeBusyPath(path, logger=None):
|
||||||
p.kill()
|
p.kill()
|
||||||
|
|
||||||
def fallbackLogger(module, loglevel, msg):
|
def fallbackLogger(module, loglevel, msg):
|
||||||
print('[{}] [{}] Logger not initialized, this will only go to console:\n{}'.format(module, loglevel, msg))
|
print('[{}] [{}] [FALLBACK LOGGER]: {}'.format(module, loglevel, msg))
|
||||||
|
|
2
main.py
2
main.py
|
@ -8,7 +8,7 @@ from multiprocessing.managers import BaseManager
|
||||||
from auxilary import fallbackLogger
|
from auxilary import fallbackLogger
|
||||||
|
|
||||||
def printTrace(t):
|
def printTrace(t):
|
||||||
fallbackLogger(__name__, 'CRITICAL', t)
|
fallbackLogger(__name__, 'CRITICAL', '\n' + t)
|
||||||
|
|
||||||
def clean():
|
def clean():
|
||||||
GPIO.cleanup()
|
GPIO.cleanup()
|
||||||
|
|
Loading…
Reference in New Issue