You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
msg and path are the same. But we don't want to see a URL path in the msg field.
The issue is here
Ginzap passes the path as the first parameter to Zap function log.Info which expected message.
duplicated fields timestamp and time. Dirty hack for that - don't pass TimeFormat to Ginzap
Like:
The current
ginzap
package provides the following log lines:There are several problems with this:
msg
andpath
are the same. But we don't want to see a URL path in themsg
field.The issue is here
Ginzap passes the
path
as the first parameter to Zap functionlog.Info
which expected message.duplicated fields
timestamp
andtime
. Dirty hack for that - don't passTimeFormat
to GinzapLike:
A useful option might be to create our custom middleware
For example
The text was updated successfully, but these errors were encountered: