Skip to content
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

fix: fix default gin #1133

Merged
merged 1 commit into from
Nov 18, 2024
Merged

fix: fix default gin #1133

merged 1 commit into from
Nov 18, 2024

Conversation

igophper
Copy link

What this Pull Request (PR) does

Please briefly describe what this PR does.
gin.Default() to gin.New() because gin.Default() already includes the Logger and Recover middleware.

r.Use(gin.Logger())
r.Use(gin.Recovery())

Related issues

Please reference any open issues this PR relates to in here.
If it closes an issue, type closes #[ISSUE_NUMBER].

Screenshots

Provide any screenshots you may find relevant to facilitate us understanding your PR.

@eugeis eugeis merged commit 47a797e into danielmiessler:main Nov 18, 2024
1 check passed
@igophper igophper deleted the fix_gin_logger branch November 18, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants