~xenrox/faceit_checker

4256b50cac2ef19c7700e04138c360090deb8939 — Thorben Günther 9 months ago 7ddb4ea
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()