-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logger panics after SetHeader with empty string #2295
Comments
Issue is already fixed in logger Will you update dependency, or we are waiting for release or something? |
I'll bump version soon. Are you trying to disable logger or why are you setting header to empty string? |
Hi, thanks for reply. |
@glumpo what are you logging? If its requests then I strongly suggest you to use newer logger middleware https://github.com/labstack/echo/blob/master/middleware/request_logger.go See examples there at the beginning. RequestLogger middleware is built to be used with 3rd party logger libraries (like Zap, Zerolog etc). |
@aldas Thanks for suggestion I already use RequestLogger for requests. But as I can see Logger is used for some internal purposes in |
This is fixed in |
Issue Description
Checklist
Expected behaviour
I expect code above to print just a message "Hellow"
Actual behaviour
Code panics.
Steps to reproduce
go run ./main.go
with code above.Version/commit
v4.9.0
Also checked on latest commit 666938e
The text was updated successfully, but these errors were encountered: