From dccc93ac6bf4e2ff7abbdb6ec114f352d68859ca Mon Sep 17 00:00:00 2001 From: Moritz Date: Thu, 24 Oct 2024 17:44:54 +0200 Subject: [PATCH] optimize logging --- backupbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backupbot.py b/backupbot.py index dee0bba..c0b3374 100755 --- a/backupbot.py +++ b/backupbot.py @@ -359,14 +359,14 @@ def run_commands(commands): logger.error( f"Failed to run command {command} in {container.name}: {result.output.decode()}") else: - logger.info(result.output.decode()) + logger.debug(result.output.decode()) def backup_volumes(backup_paths, apps_versions, retries, dry_run=False): while True: try: logger.info("Backup these paths:") - logger.debug("\n".join(map(str, backup_paths))) + logger.info("\n".join(map(str, backup_paths))) backup_paths = list(filter(path_exists, backup_paths)) cmd = restic.cat.base_command() parent = get_snapshots('latest')