[BACKEND] Debug log subscription as yaml to reproduce (#294)
This commit is contained in:
parent
86c7e7b84e
commit
1f4ac3e70f
2 changed files with 9 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ def _download_subscriptions_from_yaml_files(
|
|||
|
||||
for subscription in subscriptions:
|
||||
logger.info("Beginning subscription download for %s", subscription.name)
|
||||
logger.debug("Subscription full yaml:\n%s", subscription.as_yaml())
|
||||
transaction_log = subscription.download(dry_run=args.dry_run)
|
||||
|
||||
output.append((subscription, transaction_log))
|
||||
|
|
|
|||
|
|
@ -134,3 +134,11 @@ class BaseSubscription(ABC):
|
|||
self.output_options.maintain_download_archive
|
||||
and self.downloader_class.supports_download_archive
|
||||
)
|
||||
|
||||
def as_yaml(self) -> str:
|
||||
"""
|
||||
Returns
|
||||
-------
|
||||
Subscription in yaml format
|
||||
"""
|
||||
return self._preset_options.yaml
|
||||
|
|
|
|||
Loading…
Reference in a new issue