Skip to content

Commit bbc1360

Browse files
authored
Merge pull request #178 from asherf/checks
Configure logging in end 2 end test app
2 parents 2f59ac4 + cc88d6f commit bbc1360

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

django_prometheus/tests/end2end/testapp/settings.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,11 @@ def GetMiddlewareClasses():
180180
# https://docs.djangoproject.com/en/1.8/howto/static-files/
181181

182182
STATIC_URL = "/static/"
183+
184+
LOGGING = {
185+
"version": 1,
186+
"disable_existing_loggers": False,
187+
"handlers": {"console": {"class": "logging.StreamHandler"}},
188+
"root": {"handlers": ["console"], "level": "INFO"},
189+
"loggers": {"django": {"handlers": ["console"], "level": "INFO"}},
190+
}

0 commit comments

Comments
 (0)