Skip to content

Commit

Permalink
[chores] Added info logging when sending metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Apr 24, 2024
1 parent 1d3b00c commit 0a7f921
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openwisp_utils/metric_collection/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ def send_usage_metrics(cls, category):
category, {'Installation Method': get_openwisp_installation_method()}
)
)
logger.info(f'Sending metrics, category={category}')
cls._post_metrics(metrics)
logger.info(f'Metrics sent successfully, category={category}')
logger.info(f'Metrics: {metrics}')

@classmethod
def _post_metrics(cls, events):
Expand Down

0 comments on commit 0a7f921

Please sign in to comment.