Skip to content

Commit 20218d0

Browse files
committed
wip
1 parent 589c5f0 commit 20218d0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎elasticsearch_metrics/management/commands/djelme_indexes.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import logging
2+
13
from django.core.management.base import BaseCommand
24

35
from elasticsearch_metrics.registry import djelme_registry
@@ -23,6 +25,8 @@ def add_arguments(self, parser):
2325
)
2426

2527
def handle(self, *args, **options):
28+
# Avoid elasticsearch requests from getting logged
29+
logging.getLogger("elastic_transport").setLevel(logging.ERROR)
2630
_app_labels = (
2731
[options["app_label"]]
2832
if options["app_label"]

0 commit comments

Comments
 (0)