From 8e90bd209c3fc905223b24597d8a1f61592fba8d Mon Sep 17 00:00:00 2001 From: petrucci4prez Date: Tue, 23 May 2017 01:50:01 -0400 Subject: [PATCH] clean up format in fallbackLogger --- auxilary.py | 2 +- main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/auxilary.py b/auxilary.py index be1b3a8..3d3e44f 100644 --- a/auxilary.py +++ b/auxilary.py @@ -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)) diff --git a/main.py b/main.py index 0a7c7cf..9035d88 100755 --- a/main.py +++ b/main.py @@ -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()