Don't log dry-run mode twice

This commit is contained in:
deajan 2024-11-26 21:30:55 +01:00
parent 6070529cfd
commit 287299614e
2 changed files with 1 additions and 2 deletions

View file

@ -607,8 +607,6 @@ class NPBackupRunner:
}
return js
return False
if self.dry_run:
logger.info("Running in dry mode. No modifications will be done")
# pylint: disable=E1102 (not-callable)
return fn(self, *args, **kwargs)

View file

@ -338,6 +338,7 @@ class ResticRunner:
# but restic backup / --dry-run does
operation = fn_name(1)
if operation in ["backup", "forget", "prune", "restore", "rewrite"]:
self.write_logs("Running in dry mode. No modifications will be done", level="info")
_cmd += " --dry-run"
self._executor_running = True