clean up format in fallbackLogger

This commit is contained in:
petrucci4prez 2017-05-23 01:50:01 -04:00
parent 9e959c3d9e
commit 8e90bd209c
2 changed files with 2 additions and 2 deletions

View File

@ -83,4 +83,4 @@ def freeBusyPath(path, logger=None):
p.kill()
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))

View File

@ -8,7 +8,7 @@ from multiprocessing.managers import BaseManager
from auxilary import fallbackLogger
def printTrace(t):
fallbackLogger(__name__, 'CRITICAL', t)
fallbackLogger(__name__, 'CRITICAL', '\n' + t)
def clean():
GPIO.cleanup()