optimize logging
This commit is contained in:
parent
826bec925f
commit
dccc93ac6b
@ -359,14 +359,14 @@ def run_commands(commands):
|
|||||||
logger.error(
|
logger.error(
|
||||||
f"Failed to run command {command} in {container.name}: {result.output.decode()}")
|
f"Failed to run command {command} in {container.name}: {result.output.decode()}")
|
||||||
else:
|
else:
|
||||||
logger.info(result.output.decode())
|
logger.debug(result.output.decode())
|
||||||
|
|
||||||
|
|
||||||
def backup_volumes(backup_paths, apps_versions, retries, dry_run=False):
|
def backup_volumes(backup_paths, apps_versions, retries, dry_run=False):
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
logger.info("Backup these paths:")
|
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))
|
backup_paths = list(filter(path_exists, backup_paths))
|
||||||
cmd = restic.cat.base_command()
|
cmd = restic.cat.base_command()
|
||||||
parent = get_snapshots('latest')
|
parent = get_snapshots('latest')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user