Tim Voronov
Tim Voronov
> I am adding some context to > > ```go > if err = next(c); err != nil { > c.Error(err) > } > ``` > > Calling `c.Error(err)` and...
> This is OK. It would be probably better to add comment somewhere that middleware probably reports status incorrectly on error. > > https://github.com/ziflex/lecho/blob/967237ff45a5b5a87414c392d4a6d5813d04d0a0/middleware.go#L142 > > > In that case...
Okay, I added a new flag, pretty much the same one that Echo has, to enable-disable this 'feature'. https://github.com/ziflex/lecho#errors
Hey @rrajkowski, You should be able to do this with the existing API. ```go lecho.New(zerolog.MultiLevelWriter(consoleWriter, os.Stdout)) ``` ```go lecho.From(zerolog.New(zerolog.MultiLevelWriter(consoleWriter, os.Stdout))) ``` ```go lecho.Middleware(lecho.Config{ Logger: lecho.New(zerolog.MultiLevelWriter(consoleWriter, os.Stdout)), }) ```
Hmmm. For some reason, jettison is causing the panic. I will look into it. Could you provide an example of a JSON value you are returning?
Hey, can you try this with the latest version?
Hey, I added ``RequestIDHeader`` option to the Middleware configuration. ```go e.Use(lecho.Middleware(lecho.Config{ Logger: logger, RequestIDHeader: "traceID", })) ``` Will it be sufficient for you? Or do you need both?
Here is a way to enrich the logger with additional values: https://github.com/ziflex/lecho/pull/19 Let me know if it works for you.
> I have installed python and pip, and tested its installation. > > ``` > python --version > python 3.8.2 > > pip --version > pip 20.1.1 > ``` >...
It seems that you have hit NodeJS's (V8) default heap memory limit. You can try to run the app using the following args to increase the limit: ``` node --max-old-space-size=8192...