1 parent 589c5f0 commit 20218d0Copy full SHA for 20218d0
1 file changed
elasticsearch_metrics/management/commands/djelme_indexes.py
@@ -1,3 +1,5 @@
1
+import logging
2
+
3
from django.core.management.base import BaseCommand
4
5
from elasticsearch_metrics.registry import djelme_registry
@@ -23,6 +25,8 @@ def add_arguments(self, parser):
23
25
)
24
26
27
def handle(self, *args, **options):
28
+ # Avoid elasticsearch requests from getting logged
29
+ logging.getLogger("elastic_transport").setLevel(logging.ERROR)
30
_app_labels = (
31
[options["app_label"]]
32
if options["app_label"]
0 commit comments