Add debug message that logs borg version for every config (#714).

Reviewed-on: https://projects.torsion.org/borgmatic-collective/borgmatic/pulls/792
This commit is contained in:
Dan Helfman 2023-11-25 03:59:40 +00:00
commit e120dff9ff

View file

@ -75,6 +75,7 @@ def run_configuration(config_filename, config, arguments):
try: try:
local_borg_version = borg_version.local_borg_version(config, local_path) local_borg_version = borg_version.local_borg_version(config, local_path)
logger.debug(f'{config_filename}: Borg {local_borg_version}')
except (OSError, CalledProcessError, ValueError) as error: except (OSError, CalledProcessError, ValueError) as error:
yield from log_error_records(f'{config_filename}: Error getting local Borg version', error) yield from log_error_records(f'{config_filename}: Error getting local Borg version', error)
return return