-
Notifications
You must be signed in to change notification settings - Fork 30
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
make With
fields surrounding with [
]
#4
Conversation
zap_log_test.go
Outdated
`[INFO] [zap_log_test.go:127] [欢迎]`, | ||
`[INFO] [zap_log_test.go:128] ["欢迎来到 TiDB"]`, | ||
`[WARN] [zap_log_test.go:129] [Type] [Counter=NaN] [Score=+Inf]`, | ||
`[INFO] [zap_log_test.go:133] ["new connection"],[connID=1] [traceID=dse1121]`, |
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.
Why is there has a comma?
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.
it seems we should change this https://github.com/pingcap/log/pull/4/files#diff-22234ef75ee1f622759c3325ab0a28deR434
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.
LGTM
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.
LGTM
fixes #3
because uber-go/zap#685 can not be accepted in 1.x and too many private method, so we temp copy whole ioCore to pingcap/log to call our
addFileds()
then we can make pingcap/tidb#9548 works
This change is