summaryrefslogtreecommitdiff
path: root/tools/merge_backup.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/merge_backup.py')
-rwxr-xr-xtools/merge_backup.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/merge_backup.py b/tools/merge_backup.py
index c057b5a..b0c7289 100755
--- a/tools/merge_backup.py
+++ b/tools/merge_backup.py
@@ -229,12 +229,7 @@ def main():
lockfile = mergedb + "/.merge_backup.lock"
fetched_path = mergedb + "/fetched"
- loglevel = getattr(logging, args.loglevel.upper())
- if args.mergeinterval is None:
- logging.basicConfig(level=loglevel)
- else:
- logging.basicConfig(filename=args.logdir + "/merge_backup.log",
- level=loglevel)
+ loginit(args, "merge_backup.log")
if not flock_ex_or_fail(lockfile):
logging.critical("unable to take lock %s", lockfile)