mirror of
https://github.com/kaaninchen/Laterna.git
synced 2026-09-17 19:12:48 +00:00
🐛 fix(server.go): Fix HTTP startup log
This commit is contained in:
@@ -28,12 +28,11 @@ func StartHTTPServer() {
|
||||
}
|
||||
|
||||
port := config.AppConfig.HTTP.Port
|
||||
logger.HTTPLogger.Printf("Starting HTTP Server on :%v", port)
|
||||
err := http.ListenAndServe(fmt.Sprintf(":%d", port), router)
|
||||
if err != nil {
|
||||
logger.HTTPLogger.Fatalf("Failed to start HTTP server: %v", err)
|
||||
}
|
||||
logger.HTTPLogger.Printf("HTTP Server running on :%v", port)
|
||||
|
||||
}
|
||||
|
||||
func notFoundHandler(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user