Skip to content

Commit a9993c7

Browse files
pandafynemesifier
authored andcommitted
[chores] Removed extra logging from perform check
1 parent c02b12a commit a9993c7

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

openwisp_monitoring/check/tasks.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import json
22
import logging
3-
import time
43

54
from celery import shared_task
65
from django.conf import settings
@@ -66,8 +65,6 @@ def perform_check(uuid):
6665
Retrieves check according to the passed UUID and calls the
6766
``perform_check()`` method.
6867
"""
69-
start_time = time.time()
70-
7168
try:
7269
check = get_check_model().objects.get(pk=uuid)
7370
except ObjectDoesNotExist:
@@ -77,9 +74,6 @@ def perform_check(uuid):
7774
if settings.DEBUG: # pragma: nocover
7875
print(json.dumps(result, indent=4, sort_keys=True))
7976

80-
elapsed_time = time.time() - start_time
81-
logger.info(f'Check "{check}" took {elapsed_time:.2f}s to complete.')
82-
8377

8478
@shared_task(base=OpenwispCeleryTask)
8579
def auto_create_check(

0 commit comments

Comments
 (0)