borgend.py

changeset 4
d72c4844e791
parent 3
4cad934aa9ce
child 8
7b2d2eac6a48
--- a/borgend.py	Fri Jan 19 14:42:27 2018 +0000
+++ b/borgend.py	Fri Jan 19 15:41:45 2018 +0000
@@ -1,10 +1,15 @@
 #!/usr/local/bin/python3
 
+import logging
+
+logging.basicConfig(#filename='example.log',
+                    format='%(levelname)s:%(message)s',
+                    level=logging.DEBUG)
+
 from backup import Backup
 from config import settings
 from queue import Queue
 import ui
-#import scheduler
 
 if __name__ == "__main__":
     #print(settings)
@@ -15,6 +20,7 @@
 backups=[None]*len(backupconfigs);
 
 for i in range(len(backupconfigs)):
+    logging.info('Setting up backup set %d' % i)
     backups[i]=Backup(i, backupconfigs[i])
 
 queue=Queue()

mercurial