fix logger
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
aovantsev
2025-10-09 07:37:41 +03:00
parent 97771b1023
commit a6eb3a2088
5 changed files with 35 additions and 41 deletions

View File

@@ -1,7 +1,6 @@
package main
import (
"log"
"net/http"
"strconv"
"strings"
@@ -90,9 +89,9 @@ func StartMetricsServer(port string) {
}
go func() {
log.Printf("📈 Metrics server starting on http://localhost:%s/metrics", port)
Logger.Printf("📈 Metrics server starting on http://localhost:%s/metrics", port)
if err := server.ListenAndServe(); err != nil && err != http.ErrServerClosed {
log.Printf("❌ Metrics server failed to start: %v", err)
Logger.Printf("❌ Metrics server failed to start: %v", err)
}
}()
}