|
@@ -103,7 +103,7 @@ def run_configuration(config_filename, config, config_paths, arguments):
|
|
|
dry_run=global_arguments.dry_run,
|
|
|
action_names=arguments.keys(),
|
|
|
configuration_filename=config_filename,
|
|
|
- log_file=arguments['global'].log_file,
|
|
|
+ log_file=arguments['global'].log_file or '',
|
|
|
):
|
|
|
try:
|
|
|
local_borg_version = borg_version.local_borg_version(config, local_path)
|
|
@@ -243,7 +243,7 @@ def run_configuration(config_filename, config, config_paths, arguments):
|
|
|
config.get('umask'),
|
|
|
global_arguments.dry_run,
|
|
|
configuration_filename=config_filename,
|
|
|
- log_file=arguments['global'].log_file,
|
|
|
+ log_file=arguments['global'].log_file or '',
|
|
|
repository=error_repository.get('path', '') if error_repository else '',
|
|
|
repository_label=error_repository.get('label', '') if error_repository else '',
|
|
|
error=encountered_error,
|
|
@@ -834,7 +834,7 @@ def collect_configuration_run_summary_logs(configs, config_paths, arguments):
|
|
|
config.get('umask'),
|
|
|
arguments['global'].dry_run,
|
|
|
configuration_filename=config_filename,
|
|
|
- log_file=arguments['global'].log_file,
|
|
|
+ log_file=arguments['global'].log_file or '',
|
|
|
)
|
|
|
except (CalledProcessError, ValueError, OSError) as error:
|
|
|
yield from log_error_records('Error running before everything hook', error)
|
|
@@ -896,7 +896,7 @@ def collect_configuration_run_summary_logs(configs, config_paths, arguments):
|
|
|
config.get('umask'),
|
|
|
arguments['global'].dry_run,
|
|
|
configuration_filename=config_filename,
|
|
|
- log_file=arguments['global'].log_file,
|
|
|
+ log_file=arguments['global'].log_file or '',
|
|
|
)
|
|
|
except (CalledProcessError, ValueError, OSError) as error:
|
|
|
yield from log_error_records('Error running after everything hook', error)
|