Skip to content

Fix: logging by adding new logger struct#86

Merged
jay-dee7 merged 4 commits intomasterfrom
fix-logging
Dec 12, 2021
Merged

Fix: logging by adding new logger struct#86
jay-dee7 merged 4 commits intomasterfrom
fix-logging

Conversation

@guacamole
Copy link
Member

  • Added new logger struct to contain zerologger and echo logger
  • In the earlier implementation, the logger was being called in middleware which caused the log messages to return caller as middelware instead of the handler within which made debugging difficult
  • This PR fixes the issue by removing the middleware and calling logger inside each handler

Signed-off-by: guacamole [email protected]

- Added new logger struct to contain zerologger and echo logger
- In the earlier implementaion, the logger was being called in middleware which caused the log messages to return caller as middelware instead of the handler within
- This PR fixes the issue by removing the middleware and calling logger inside each handler

Signed-off-by: guacamole <[email protected]>
@guacamole guacamole requested a review from jay-dee7 December 11, 2021 12:21
@guacamole guacamole self-assigned this Dec 11, 2021
- Added new logger struct to contain zerologger and echo logger
- In the earlier implementaion, the logger was being called in middleware which caused the log messages to return caller as middelware instead of the handler within
- This PR fixes the issue by removing the middleware and calling logger inside each handler

Signed-off-by: guacamole <[email protected]>
@jay-dee7 jay-dee7 marked this pull request as ready for review December 12, 2021 07:10
Copy link
Member

@jay-dee7 jay-dee7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @guacamole 🥇

@jay-dee7 jay-dee7 merged commit 2a89488 into master Dec 12, 2021
@jay-dee7 jay-dee7 deleted the fix-logging branch December 12, 2021 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants