Do not set error status from borg output if loglevel = WARNING, only >= ERROR

Fri, 26 Jan 2018 10:23:38 +0000

author
Tuomo Valkonen <tuomov@iki.fi>
date
Fri, 26 Jan 2018 10:23:38 +0000
changeset 70
3f794760d52e
parent 69
8705e296c7a0
child 71
a8a5ebb64e02

Do not set error status from borg output if loglevel = WARNING, only >= ERROR

backup.py file | annotate | diff | comparison | revisions
--- a/backup.py	Fri Jan 26 09:27:07 2018 +0000
+++ b/backup.py	Fri Jan 26 10:23:38 2018 +0000
@@ -261,7 +261,7 @@
                     msg['name']='borg'
                 lvl=translate_loglevel(msg['levelname'])
                 self.logger.log(lvl, msg['name'] + ': ' + msg['message'])
-                if lvl>=logging.WARNING:
+                if lvl>=logging.ERROR
                     errormsg=msg
                     errors=Errors.ERRORS
                     if ('msgid' in msg and

mercurial