Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
875d2f1c
Commit
875d2f1c
authored
Jan 12, 2018
by
sim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fine tuning of logging in django backend
parent
c2672e4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
settings.py
gargantext/settings.py
+11
-0
No files found.
gargantext/settings.py
View file @
875d2f1c
...
@@ -105,12 +105,23 @@ LOGGING = {
...
@@ -105,12 +105,23 @@ LOGGING = {
'level'
:
LOG_LEVEL
,
'level'
:
LOG_LEVEL
,
'propagate'
:
True
,
'propagate'
:
True
,
},
},
# All django loggers: https://docs.djangoproject.com/fr/1.11/topics/logging/#id3
'django.template'
:
{
'django.template'
:
{
# Don't keep debug logs for template module to avoid annoying and
# Don't keep debug logs for template module to avoid annoying and
# useless noise, see:
# useless noise, see:
# https://github.com/encode/django-rest-framework/issues/3982#issuecomment-325290221
# https://github.com/encode/django-rest-framework/issues/3982#issuecomment-325290221
'level'
:
'INFO'
if
LOG_LEVEL
==
'DEBUG'
else
LOG_LEVEL
,
'level'
:
'INFO'
if
LOG_LEVEL
==
'DEBUG'
else
LOG_LEVEL
,
},
},
'django.db.backends'
:
{
'level'
:
'INFO'
,
},
'gargantext'
:
{
'handlers'
:
[
'file'
],
'level'
:
LOG_LEVEL
,
# Propagation to True means that this config applies to
# 'gargantext' logger and all 'gargantext.*'
'propagate'
:
True
,
},
},
},
}
}
...
...
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