From 0a7f9214388b634eec437af544fc31c1762a02ce Mon Sep 17 00:00:00 2001 From: Federico Capoano Date: Wed, 24 Apr 2024 12:11:55 -0400 Subject: [PATCH] [chores] Added info logging when sending metrics --- openwisp_utils/metric_collection/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openwisp_utils/metric_collection/models.py b/openwisp_utils/metric_collection/models.py index 279e2133..97dd9610 100644 --- a/openwisp_utils/metric_collection/models.py +++ b/openwisp_utils/metric_collection/models.py @@ -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):