This commit is contained in:
2026-01-05 14:06:03 +08:00
parent bf75cffb57
commit c69a33dfd8
+5
View File
@@ -156,6 +156,11 @@ func main() {
// Load environment variables from .env file first
// Get current working directory for debugging
cwd, _ := os.Getwd()
metricsPath := os.Getenv("METRICS_PATH")
if metricsPath == "" {
log.Print("METRICS_PATH not set, defaulting to /metrics")
metricsPath = "/metrics"
}
log.Printf("Current working directory: %s", cwd)
err := godotenv.Load()