add info when server startup

This commit is contained in:
Dawid Wysokiński 2021-05-02 09:30:02 +02:00
parent f65aa260b8
commit c05cc6ee9d
1 changed files with 1 additions and 1 deletions

View File

@ -142,13 +142,13 @@ func main() {
Addr: ":8080",
Handler: router,
}
go func() {
// service connections
if err := srv.ListenAndServe(); err != nil && err != http.ErrServerClosed {
logrus.Fatalf("listen: %s\n", err)
}
}()
logrus.Info("Server is listening on the port 8080")
quit := make(chan os.Signal)
signal.Notify(quit, os.Interrupt)