feat: update startup log messages

- add startup message for version information
- reformat log for websocket listening address
This commit is contained in:
Sebastian Mark 2024-10-26 00:13:04 +02:00
parent 899417b605
commit fa3ba759c4

View file

@ -39,7 +39,8 @@ func Start() {
http.HandleFunc("/ws", websocket.HandleConnections) http.HandleFunc("/ws", websocket.HandleConnections)
go websocket.SendPermanentBroadCastMessage() go websocket.SendPermanentBroadCastMessage()
log.Info("Pomodoro WebSocket server started!", "listen", listen) log.Info("GoTomato started", "version", metadata.GoTomatoVersion)
log.Info("Websocket listening", "address", listen)
err := http.ListenAndServe(listen, nil) err := http.ListenAndServe(listen, nil)
if err != nil { if err != nil {
log.Fatal("Error starting server:", "msg", err) log.Fatal("Error starting server:", "msg", err)