Some improvements for logging and loading configuration
Some improvements for logging and loading configuration:
- Logger parameterization for a more clear log showing directly the level and datetime and using the level that is configured in the
config.yaml
file:{"level":"INFO","time":"2024-05-10T13:34:03.761Z","pid":45617,"hostname":"wmf3277","msg":"mpic has started listening on port 80"}
- Some changes to load configuration and logger using the same
configuration.js
file - Logging the validation form error with details
- Adjusted the level for some logs
- Added form validation to the patch endpoint