Skip to content

Commit

Permalink
Merge pull request #462 from appsembler/john/smm-add-log-line
Browse files Browse the repository at this point in the history
Add logging statement at start of the per-site SMM task
  • Loading branch information
johnbaldwin authored Jul 5, 2022
2 parents f435dcb + e7b6e01 commit b3d5088
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions figures/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,8 @@ def populate_all_mau():
def populate_monthly_metrics_for_site(site_id):
try:
site = Site.objects.get(id=site_id)
logger.info('figures.tasks.populate_monthly_metrics_for_site({}): {}'.format(
site_id, site.domain))
msg = 'Ran populate_monthly_metrics_for_site. [{}]:{}'
with log_exec_time(msg.format(site.id, site.domain)):
fill_last_smm_month(site=site)
Expand Down

0 comments on commit b3d5088

Please sign in to comment.