alexandrie icon indicating copy to clipboard operation
alexandrie copied to clipboard

add additional details to error logs

Open jonathanstrong opened this issue 3 years ago • 1 comments

hey, just a user report from the wild for you to consider.

I was setting up alexandrie behind a reverse proxy and ran into a puzzling error.

it turned out to be this issue.

the alexandrie logs displayed this:

Feb 24 11:48:20.085 ERRO async-h1 error, version: 0.1.0                                                                

I tried but was unable to identify where in the source code that message is generated. It would have been better if there were additional details provided, to facilitate debugging the problem. thanks!

jonathanstrong avatar Feb 24 '21 17:02 jonathanstrong

Hello,

I agree that log messages are currently too minimal.
One way to improve things could make better use to structural logging and maybe make log statements be done as NDJSON (newline-delimited JSON) in release mode, with an optional simpler pretty printer when built in debug mode.

I'll try to poke at it very soon, Thanks for filing this issue !

Hirevo avatar Mar 21 '21 12:03 Hirevo