Log start and shutdown
1 files changed, 2 insertions(+), 0 deletions(-) M faceit.go
M faceit.go => faceit.go +2 -0
@@ 159,6 159,7 @@ func main() { WriteTimeout: 60 * time.Second, ReadTimeout: 60 * time.Second, } logger.Info(fmt.Sprintf("Starting faceit_checker, listening on %s", cfg.httpAddress)) go func() { @@ err = srv.ListenAndServe() 171,6 172,7 @@ func main() { <-ctx.Done() stop() logger.Info("Shutting down") httpShutdownContext, cancel := context.WithTimeout(context.Background(), 10*time.Second) defer cancel()