-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Default engine producing two log lines with StaticFS for 404 #1804
Comments
This seems to be caused by PR #1663 |
sairoutine
added a commit
to sairoutine/gin
that referenced
this issue
Mar 10, 2019
appleboy
pushed a commit
that referenced
this issue
Mar 11, 2019
@MusicAdam |
sweetdream-001
added a commit
to sweetdream-001/project-golang
that referenced
this issue
Feb 17, 2025
Fix: gin-gonic/gin#1804 `allNoRoute` contains middlewares such as `gin.Logger`, `gin.Recovery`, so on. The correct code is to use `noRoute`. cc: @MetalBreaker
James-9285
added a commit
to James-9285/golang-project
that referenced
this issue
Mar 9, 2025
Fix: gin-gonic/gin#1804 `allNoRoute` contains middlewares such as `gin.Logger`, `gin.Recovery`, so on. The correct code is to use `noRoute`. cc: @MetalBreaker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I am receiving two log lines from a 404, even when using the default engine.
If I remove the router.StaticFS I no longer see the issue.
Code example:
Screenshots
The text was updated successfully, but these errors were encountered: