--- a/borgend.py Sun Jan 21 12:10:57 2018 +0000 +++ b/borgend.py Sun Jan 21 13:34:12 2018 +0000 @@ -4,9 +4,11 @@ from threading import Thread logging.basicConfig(#filename='example.log', - format='%(levelname)s:%(message)s', + #format='%(levelname)s:%(message)s', level=logging.DEBUG) +logger=logging.getLogger(__name__) + from backup import Backup from config import settings from queue import Queue @@ -17,7 +19,7 @@ backups=[None]*len(backupconfigs); for i in range(len(backupconfigs)): - logging.info('Setting up backup set %d' % i) + logger.info('Setting up backup set %d' % i) backups[i]=Backup(i, backupconfigs[i]) backups[i].schedule()