UCL-INGI / INGInious

INGInious is a secure and automated exercises assessment platform using your own tests, also providing a pluggable interface with your existing LMS.
http://www.inginious.org
Other
202 stars 139 forks source link

Can't see frontend logging entries in log file #958

Closed RazNitzanCyber closed 1 year ago

RazNitzanCyber commented 1 year ago

Describe the bug When webapp starts, I cannot see the frontend logging entries, such as "inginious.frontend - INFO - Starting a simple arch (backend, docker-agent and mcq-agent) locally", in the log file.

INGInious installation details

Looking at the code, it seems that the cause of this issue is that in inginious-wepapp.py, the call to init_logging is made after the call to get_app (which relies on an initiated logger). I have tried moving the call to init_logging before the call to get_app, and it seems to have solved the issue.