Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-notes-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-notes-api
Commits
7326a18f
Commit
7326a18f
authored
Jan 02, 2015
by
Oleg Marshev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move logging.
parent
a3325ac9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
25 deletions
+3
-25
notesserver/settings/common.py
+3
-23
notesserver/settings/yaml_config.py
+0
-2
No files found.
notesserver/settings/common.py
View file @
7326a18f
...
@@ -2,6 +2,8 @@ import os
...
@@ -2,6 +2,8 @@ import os
import
json
import
json
import
sys
import
sys
from
notesserver.settings.logger
import
get_logger_config
DEBUG
=
False
DEBUG
=
False
TEMPLATE_DEBUG
=
False
TEMPLATE_DEBUG
=
False
DISABLE_TOKEN_CHECK
=
False
DISABLE_TOKEN_CHECK
=
False
...
@@ -47,29 +49,7 @@ STATIC_URL = '/static/'
...
@@ -47,29 +49,7 @@ STATIC_URL = '/static/'
WSGI_APPLICATION
=
'notesserver.wsgi.application'
WSGI_APPLICATION
=
'notesserver.wsgi.application'
LOGGING
=
{
LOGGING
=
get_logger_config
()
'version'
:
1
,
'disable_existing_loggers'
:
False
,
'handlers'
:
{
'console'
:
{
'level'
:
'DEBUG'
,
'class'
:
'logging.StreamHandler'
,
'stream'
:
sys
.
stderr
,
},
},
'loggers'
:
{
'django'
:
{
'handlers'
:
[
'console'
],
'level'
:
'ERROR'
,
'propagate'
:
False
,
},
'elasticsearch.trace'
:
{
'handlers'
:
[
'console'
],
'level'
:
'ERROR'
,
'propagate'
:
False
}
},
}
REST_FRAMEWORK
=
{
REST_FRAMEWORK
=
{
'DEFAULT_PERMISSION_CLASSES'
:
[
'DEFAULT_PERMISSION_CLASSES'
:
[
...
...
notesserver/settings/yaml_config.py
View file @
7326a18f
import
yaml
import
yaml
from
.common
import
*
# pylint: disable=unused-wildcard-import, wildcard-import
from
.common
import
*
# pylint: disable=unused-wildcard-import, wildcard-import
from
notesserver.settings.logger
import
get_logger_config
LOGGING
=
get_logger_config
()
###############################################################################
###############################################################################
# Explicitly declare here in case someone changes common.py.
# Explicitly declare here in case someone changes common.py.
...
...
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