sensebox / openSenseMap-API

API for opensensemap.org
https://docs.opensensemap.org/
MIT License
49 stars 41 forks source link

chore: add logger for debugging purposes #887

Closed mpfeil closed 1 month ago

mpfeil commented 1 month ago

Description

This PR introduces different kind of logger. Right now the API has one logger and its the default one provided by restify and uses pino under the hode.

Motivation and Context

This hat a motivational background in debugging purposes and support requests. Right now it is only possible to see some basic information in requests coming in and sometimes it is quite hard to identify the issue. The introduced debugLogger extends the log message by including the request body. It should only be used in support cases.

Types of changes

Checklist: