-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rest: logging does not work correctly in production mode #417
Comments
After some research, I've discovered that we're only printing 4xx and 5xx logs when using uwsgi. IIRC this was our decision, perhaps to avoid too much output and thus be able to detect errors easier. Should we keep it like this? @tiborsimko
Probably you were not logged in so the HTTP code was 401. |
Good catch! I think printing everything is a better default, and if that is really too verbose, let's allow admins to change it easily. |
- by default, log all HTTP requests - allow logging only HTTP error requests (status code 4xx and 5xx) closes reanahub/reana-server#417
Currently on production mode installation there are some issues with
rest-api
logging:It is only working for limited amount of endpoints. E.g.
/ping
is not being logged while/api/you
logged as expectedThere are lots of deprecation warnings in the logs like this:
which are repeated for almost 1.5k lines after application starts. This could be due to outdated
invenio
dependencies. However it's not trivial to upgrade it because we have a conflictingcelery
dependency (from outdatedkombu
version which requirescelery<5.0.0
pinning).Logging level set in reana-commons is not respected: logger: basic configuration does not work because of the invenio-logging handlers #298
It seems that
factory.py
andcreate_app()
are only being used inreana-admin
andscheduler
(defined here). Needs a deeper investigation, but if that's the case there is no point in registering the blueprints there. Looks like invenio-base is taking care for starting up the application. To reproduce try to:factory.py
andapp.py
reana-dev docker-build -c . -b DEBUG=1
reana-dev kind-load-docker-image -c .
flask reana-admin create-admin-user
The text was updated successfully, but these errors were encountered: