-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 #1260 change middleware.Logger's default output #1336
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1336 +/- ##
==========================================
- Coverage 84.34% 84.11% -0.23%
==========================================
Files 27 27
Lines 2012 2065 +53
==========================================
+ Hits 1697 1737 +40
- Misses 205 214 +9
- Partials 110 114 +4
Continue to review full report at Codecov.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
middleware/logger.go
Outdated
@@ -74,7 +73,7 @@ var ( | |||
`"status":${status},"error":"${error}","latency":${latency},"latency_human":"${latency_human}"` + | |||
`,"bytes_in":${bytes_in},"bytes_out":${bytes_out}}` + "\n", | |||
CustomTimeFormat: "2006-01-02 15:04:05.00000", | |||
Output: os.Stdout, | |||
Output: nil, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to assign, it is nil
by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to remove Output:
assignment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see the comments
Fixes #1260