Need logging in the bot to record errors for better awareness of bugs and help in investigating them.
Current state
Errors are sent as response to the caller of the api. #11 adds logging using console.error in the errorHandler middleware which should make the errors visible on the caprover dashboard where c0d3ris deployed.
Proposed Solution
Add winston to log errors and use winston-logflare transport to forward them to our logflare account.
Need logging in the bot to record errors for better awareness of bugs and help in investigating them.
Current state
Errors are sent as response to the caller of the api. #11 adds logging using
console.errorin the errorHandler middleware which should make the errors visible on the caprover dashboard where c0d3ris deployed.Proposed Solution
Add winston to log errors and use winston-logflare transport to forward them to our logflare account.