Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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-platform
Commits
e6f0203a
Commit
e6f0203a
authored
Nov 13, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence noisy loggers in the devstack
parent
32bc26c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
cms/envs/devstack.py
+12
-3
lms/envs/devstack.py
+8
-0
No files found.
cms/envs/devstack.py
View file @
e6f0203a
...
@@ -8,11 +8,20 @@ DEBUG = True
...
@@ -8,11 +8,20 @@ DEBUG = True
USE_I18N
=
True
USE_I18N
=
True
TEMPLATE_DEBUG
=
DEBUG
TEMPLATE_DEBUG
=
DEBUG
################################ LOGGERS ######################################
import
logging
# Disable noisy loggers
for
pkg_name
in
[
'track.contexts'
,
'track.middleware'
,
'dd.dogapi'
]:
logging
.
getLogger
(
pkg_name
)
.
setLevel
(
logging
.
CRITICAL
)
################################ EMAIL ########################################
################################ EMAIL ########################################
EMAIL_BACKEND
=
'django.core.mail.backends.console.EmailBackend'
EMAIL_BACKEND
=
'django.core.mail.backends.console.EmailBackend'
################################# LMS INTEGRATION #############################
#########
################################# LMS INTEGRATION #############################
MITX_FEATURES
[
'PREVIEW_LMS_BASE'
]
=
"preview.localhost:8000"
MITX_FEATURES
[
'PREVIEW_LMS_BASE'
]
=
"preview.localhost:8000"
...
@@ -21,7 +30,7 @@ MITX_FEATURES['PREVIEW_LMS_BASE'] = "preview.localhost:8000"
...
@@ -21,7 +30,7 @@ MITX_FEATURES['PREVIEW_LMS_BASE'] = "preview.localhost:8000"
# By default don't use a worker, execute tasks as if they were local functions
# By default don't use a worker, execute tasks as if they were local functions
CELERY_ALWAYS_EAGER
=
True
CELERY_ALWAYS_EAGER
=
True
################################ DEBUG TOOLBAR ################################
#
################################ DEBUG TOOLBAR ################################
INSTALLED_APPS
+=
(
'debug_toolbar'
,
'debug_toolbar_mongo'
)
INSTALLED_APPS
+=
(
'debug_toolbar'
,
'debug_toolbar_mongo'
)
MIDDLEWARE_CLASSES
+=
(
'debug_toolbar.middleware.DebugToolbarMiddleware'
,)
MIDDLEWARE_CLASSES
+=
(
'debug_toolbar.middleware.DebugToolbarMiddleware'
,)
INTERNAL_IPS
=
(
'127.0.0.1'
,)
INTERNAL_IPS
=
(
'127.0.0.1'
,)
...
@@ -45,7 +54,7 @@ DEBUG_TOOLBAR_CONFIG = {
...
@@ -45,7 +54,7 @@ DEBUG_TOOLBAR_CONFIG = {
# Stacktraces slow down page loads drastically (for pages with lots of queries).
# Stacktraces slow down page loads drastically (for pages with lots of queries).
DEBUG_TOOLBAR_MONGO_STACKTRACES
=
False
DEBUG_TOOLBAR_MONGO_STACKTRACES
=
False
#####################################################################
#####################################################################
##########
# Lastly, see if the developer has any local overrides.
# Lastly, see if the developer has any local overrides.
try
:
try
:
from
.private
import
*
# pylint: disable=F0401
from
.private
import
*
# pylint: disable=F0401
...
...
lms/envs/devstack.py
View file @
e6f0203a
...
@@ -11,6 +11,14 @@ TEMPLATE_DEBUG = True
...
@@ -11,6 +11,14 @@ TEMPLATE_DEBUG = True
# By default don't use a worker, execute tasks as if they were local functions
# By default don't use a worker, execute tasks as if they were local functions
CELERY_ALWAYS_EAGER
=
True
CELERY_ALWAYS_EAGER
=
True
################################ LOGGERS ######################################
import
logging
# Disable noisy loggers
for
pkg_name
in
[
'track.contexts'
,
'track.middleware'
,
'dd.dogapi'
]:
logging
.
getLogger
(
pkg_name
)
.
setLevel
(
logging
.
CRITICAL
)
################################ EMAIL ########################################
################################ EMAIL ########################################
...
...
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