Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-analytics-data-api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-analytics-data-api
Commits
175637c6
Commit
175637c6
authored
May 05, 2016
by
Daniel Friedman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence the elasticsearch.trace logs
parent
dd3d54de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
analyticsdataserver/settings/base.py
+19
-0
analyticsdataserver/settings/test.py
+3
-0
No files found.
analyticsdataserver/settings/base.py
View file @
175637c6
...
@@ -234,6 +234,10 @@ LOGGING = {
...
@@ -234,6 +234,10 @@ LOGGING = {
'class'
:
'logging.StreamHandler'
,
'class'
:
'logging.StreamHandler'
,
'stream'
:
stderr
,
'stream'
:
stderr
,
},
},
'null'
:
{
'level'
:
'DEBUG'
,
'class'
:
'logging.NullHandler'
}
},
},
'loggers'
:
{
'loggers'
:
{
'django'
:
{
'django'
:
{
...
@@ -246,6 +250,21 @@ LOGGING = {
...
@@ -246,6 +250,21 @@ LOGGING = {
'level'
:
'DEBUG'
,
'level'
:
'DEBUG'
,
'propagate'
:
True
'propagate'
:
True
},
},
# See https://elasticutils.readthedocs.io/en/latest/debugging.html
# INFO-level logs tell us when nodes fail and are resurrected.
'elasticsearch'
:
{
'handlers'
:
[
'console'
],
'level'
:
'WARNING'
},
# elasticsearch.trace logs are fired for every single request
# with an INFO or DEBUG level. They're noisy and not terribly
# userful for debugging, so we'll just propagate them to the
# 'elasticsearch' log bucket which only accepts 'WARNING'
# level logs.
'elasticsearch.trace'
:
{
'handlers'
:
[
'null'
],
'propagate'
:
False
}
},
},
}
}
########## END LOGGING CONFIGURATION
########## END LOGGING CONFIGURATION
...
...
analyticsdataserver/settings/test.py
View file @
175637c6
...
@@ -14,6 +14,9 @@ DATABASES = {
...
@@ -14,6 +14,9 @@ DATABASES = {
},
},
}
}
# Silence elasticsearch during tests
LOGGING
[
'loggers'
][
'elasticsearch'
][
'handlers'
]
=
[
'null'
]
INSTALLED_APPS
+=
(
INSTALLED_APPS
+=
(
'django_nose'
,
'django_nose'
,
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment