Quiet down exceptions at startup, and during tests
There's no need to display a traceback for every failed content load, the comment before the log line even says so. The exceptions shown before tests are run are because of the eager initialization of the modulestores. They don't need to be initialized then, that just speeds the responsiveness of servers. Putting off the initialization means they get inited as needed, and the log lines get
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user