fix golint issues in core/logx (#496)
This commit is contained in:
@@ -67,6 +67,7 @@ func (l *traceLogger) write(writer io.Writer, level, content string) {
|
||||
outputJson(writer, l)
|
||||
}
|
||||
|
||||
// WithContext sets ctx to log, for keeping tracing infomation.
|
||||
func WithContext(ctx context.Context) Logger {
|
||||
return &traceLogger{
|
||||
ctx: ctx,
|
||||
|
||||
Reference in New Issue
Block a user