feat(log): use github.com/qdm12/log library
This commit is contained in:
@@ -23,7 +23,6 @@ func (s *Server) Run(ctx context.Context, ready chan<- struct{}, done chan<- str
|
||||
return
|
||||
}
|
||||
|
||||
s.logger.Warn("http server shutting down: " + ctx.Err().Error())
|
||||
shutdownCtx, cancel := context.WithTimeout(
|
||||
context.Background(), s.shutdownTimeout)
|
||||
defer cancel()
|
||||
|
||||
@@ -17,7 +17,6 @@ func Test_Server_Run_success(t *testing.T) {
|
||||
|
||||
logger := NewMockLogger(ctrl)
|
||||
logger.EXPECT().Info(newRegexMatcher("^http server listening on 127.0.0.1:[1-9][0-9]{0,4}$"))
|
||||
logger.EXPECT().Warn("http server shutting down: context canceled")
|
||||
const shutdownTimeout = 10 * time.Second
|
||||
|
||||
server := &Server{
|
||||
|
||||
Reference in New Issue
Block a user