[BACKEND] Make dry-run log message (#295)
This commit is contained in:
parent
1f4ac3e70f
commit
6fbed2e4b0
1 changed files with 6 additions and 1 deletions
|
|
@ -46,7 +46,11 @@ def _download_subscriptions_from_yaml_files(
|
|||
subscriptions += Subscription.from_file_path(config=config, subscription_path=path)
|
||||
|
||||
for subscription in subscriptions:
|
||||
logger.info("Beginning subscription download for %s", subscription.name)
|
||||
logger.info(
|
||||
"Beginning subscription %s for %s",
|
||||
("dry run" if args.dry_run else "download"),
|
||||
subscription.name,
|
||||
)
|
||||
logger.debug("Subscription full yaml:\n%s", subscription.as_yaml())
|
||||
transaction_log = subscription.download(dry_run=args.dry_run)
|
||||
|
||||
|
|
@ -84,6 +88,7 @@ def _download_subscription_from_cli(
|
|||
config=config, preset_name=subscription_name, preset_dict=subscription_args_dict
|
||||
)
|
||||
|
||||
logger.info("Beginning CLI %s", ("dry run" if args.dry_run else "download"))
|
||||
return subscription, subscription.download(dry_run=args.dry_run)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue