Good catch! The level of the “local” logger is (mistakenly) undefined in Tutor: https://github.com/overhangio/tutor/blob/master/tutor/templates/apps/openedx/settings/partials/common_all.py#L27
LOGGING["handlers"]["local"] = {
"class": "logging.handlers.WatchedFileHandler",
"filename": os.path.join(LOG_DIR, "all.log"),
"formatter": "standard",
}
Instead, we should have:
LOGGING["handlers"]["local"]["level"] = ENV_TOKENS.get('LOCAL_LOGLEVEL', 'INFO')
The fact that the logging level cannot be easily modified from the env.json files could be considered a bug – but these env.json files are going to change a lot in the next Open edX release (Juniper), so I’m not sure how I feel about that.
Meanwhile, it should be easy enough to write a tutor plugin that enables debug-level logging:
name: debuglogs
version: 0.1.0
patches:
openedx-common-settings: |
LOGGING["handlers"]["local"]["level"] = "DEBUG"