optimize logging
This commit is contained in:
parent
826bec925f
commit
dccc93ac6b
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user