diff -r 83b43987e61e -r b075b3db3044 ui.py --- a/ui.py Sun Jan 28 11:04:52 2018 +0000 +++ b/ui.py Sun Jan 28 11:38:01 2018 +0000 @@ -5,15 +5,16 @@ import rumps import time import datetime -import logging -import borgend +import objc +from threading import Lock, Timer + +import loggers import backup import dreamtime -from threading import Lock, Timer +import branding from config import settings -import objc -logger=borgend.logger.getChild(__name__) +logger=loggers.get(__name__) traynames_ok={ backup.State.INACTIVE: 'B.', @@ -256,11 +257,10 @@ logger.debug("Opening notification for error %s '%s'", msgid, errorlog['message']) - notification_workaround(borgend.appname_stylised, + notification_workaround(branding.appname_stylised, msgid, errorlog['message']) def quit(self): - logging.shutdown() rumps.quit_application() def __menu_select_backup(self, sender, b): @@ -270,7 +270,7 @@ b.create() except Exception as err: logger.exception("Failure to initialise backup") - notification_workaround(borgend.appname_stylised, + notification_workaround(branding.appname_stylised, err.__class__.__name__, str(err)) #