Skip to content

Logger - Enhancements #133

Description

@guacamole

Is your feature request related to a problem? Please describe.
Yes, the logger is pretty but fails to catch a few cases

Describe the solution you'd like
set the context before logging.
Before returning any function, we are calling the logger (like below code block) but the real juice is being set by context which is being returned but not logged:

registry.logger.log(ctx, err)
return ctx.Json(http.statusBadCode, echo.Map{})

Describe alternatives you've considered

err = ctx.Json(http.statusGoodCode, echo.Map{})
registry.logger.log(ctx, err)
return err

Additional context
Na

Metadata

Metadata

Assignees

Labels

P3P3 labels are used for issues which are not very pressing and we'd love community to work onenhancementNew feature or request

Type

No type

Projects

Status
Done

Relationships

None yet

Development

No branches or pull requests

Issue actions