Skip to content

Commit

Permalink
Add package_id to resource download dryrun for easier debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Zharktas committed Feb 2, 2024
1 parent 08f9ae5 commit 1405672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/matomo/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ def fetch(dryrun, since, until, dataset):
try:
downloads = sum(int(stats.get('nb_hits', 0)) for stats in resource_stats)
if dryrun:
log.info('Would create or update: resource_id={}, date={}, downloads={}'
.format(resource_id, date, downloads))
log.info('Would create or update: package_id={}, resource_id={}, date={}, downloads={}'
.format(package_id, resource_id, date, downloads))
else:
ResourceStats.update_downloads(resource_id, date, downloads)
except Exception as e:
Expand Down

0 comments on commit 1405672

Please sign in to comment.