Skip to content

Commit

Permalink
初始化一个日志实例
Browse files Browse the repository at this point in the history
  • Loading branch information
gowater committed Oct 9, 2023
1 parent 4510952 commit f8b75d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func NewHandler(srv Service, options ...ServerOption) Handler {
option(s)
}

handler := NewLogErrorHandler(NewLogger(), srv.Name(srv))
handler := NewLogErrorHandler(log, srv.Name(srv))
srv.SetLogger(handler.l)
s.l = handler.l
s.errorHandler = handler
Expand Down

0 comments on commit f8b75d7

Please sign in to comment.