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
a1be9701
Commit
a1be9701
authored
Oct 03, 2013
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1194 from edx/ned/quiet-tests
Quiet down exceptions at startup, and during tests
parents
3504ce2c
50aa37be
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
5 deletions
+14
-5
common/lib/xmodule/xmodule/modulestore/xml.py
+1
-1
lms/envs/common.py
+4
-0
lms/envs/test.py
+4
-0
lms/startup.py
+5
-4
No files found.
common/lib/xmodule/xmodule/modulestore/xml.py
View file @
a1be9701
...
...
@@ -179,7 +179,7 @@ class ImportSystem(XMLParsingSystem, MakoDescriptorSystem):
# Normally, we don't want lots of exception traces in our logs from common
# content problems. But if you're debugging the xml loading code itself,
# uncomment the next line.
log
.
exception
(
msg
)
#
log.exception(msg)
self
.
error_tracker
(
msg
)
err_msg
=
msg
+
"
\n
"
+
exc_info_to_str
(
sys
.
exc_info
())
...
...
lms/envs/common.py
View file @
a1be9701
...
...
@@ -366,6 +366,10 @@ MODULESTORE = {
}
CONTENTSTORE
=
None
# Should we initialize the modulestores at startup, or wait until they are
# needed?
INIT_MODULESTORE_ON_STARTUP
=
True
############# XBlock Configuration ##########
# This should be moved into an XBlock Runtime/Application object
...
...
lms/envs/test.py
View file @
a1be9701
...
...
@@ -110,6 +110,10 @@ MODULESTORE = {
}
}
# Starting modulestores generates log messages. If we wait to init modulestores,
# then those messages will be silenced by the test runner.
INIT_MODULESTORE_ON_STARTUP
=
False
CONTENTSTORE
=
{
'ENGINE'
:
'xmodule.contentstore.mongo.MongoContentStore'
,
'OPTIONS'
:
{
...
...
lms/startup.py
View file @
a1be9701
...
...
@@ -19,7 +19,8 @@ def run():
"""
autostartup
()
# trigger a forced initialization of our modulestores since this can take a while to complete
# and we want this done before HTTP requests are accepted
for
store_name
in
settings
.
MODULESTORE
:
modulestore
(
store_name
)
# Trigger a forced initialization of our modulestores since this can take a while to complete
# and we want this done before HTTP requests are accepted.
if
settings
.
INIT_MODULESTORE_ON_STARTUP
:
for
store_name
in
settings
.
MODULESTORE
:
modulestore
(
store_name
)
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