openfisca / openfisca-web-api

[DEPRECATED] Web API for OpenFisca
https://www.openfisca.fr/
GNU Affero General Public License v3.0
13 stars 11 forks source link

Add days in logs #101

Closed fpagnoux closed 7 years ago

fpagnoux commented 7 years ago

As someone in charge of an openfisca web api instance, I can see in the logs which day an error has been raised


Right now only the time is logged 😆

12:03:00,221 ERROR [openfisca_core.formulas] An error occurred while calling formula rennes_metropole_transport@individu<2017-03> in module mon_aide
guillett commented 7 years ago

Just a note: Log format is specified in *.ini files.

For instance, I submitted a fix for that issue in mes-aides at https://github.com/sgmap/mes-aides-ui/pull/504.

MattiSG commented 7 years ago

The flask-based API uses the default gunicorn logger, which does present the days (unsurprisingly).

[2017-07-05 17:51:08,625] ERROR in app: Exception on /variable/rsa [GET]
Traceback (most recent call last):
...