summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup/log.py
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-04-22 01:29:45 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-04-22 01:29:45 +0000
commitb6d8d7c88405ce1ede389ab01820c4c0dac9aee4 (patch)
tree8adee080927d8d123f63ce0aa0c2c62f04dbd88d /rdiff-backup/rdiff_backup/log.py
parent3149d3b91bcec18a6e1ac1f43fefe8c70574b4aa (diff)
downloadrdiff-backup-b6d8d7c88405ce1ede389ab01820c4c0dac9aee4.tar.gz
Changed remove_older_than errorlevel when no increments found
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@318 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/log.py')
-rw-r--r--rdiff-backup/rdiff_backup/log.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rdiff-backup/rdiff_backup/log.py b/rdiff-backup/rdiff_backup/log.py
index 60ef434..53126e5 100644
--- a/rdiff-backup/rdiff_backup/log.py
+++ b/rdiff-backup/rdiff_backup/log.py
@@ -150,7 +150,7 @@ class Logger:
self.log_to_term("%s %s (%d): %s" %
(conn_str, direction, req_num, result_repr), 9)
- def FatalError(self, message, no_fatal_message = 0):
+ def FatalError(self, message, no_fatal_message = 0, errlevel = 1):
"""Log a fatal error and exit"""
assert no_fatal_message == 0 or no_fatal_message == 1
if no_fatal_message: prefix_string = ""
@@ -158,7 +158,7 @@ class Logger:
self(prefix_string + message, 1)
import Main
Main.cleanup()
- sys.exit(1)
+ sys.exit(errlevel)
def exception_to_string(self, arglist = []):
"""Return string version of current exception plus what's in arglist"""