This commit is contained in:
2026-01-05 14:06:43 +08:00
parent 3075a1ece5
commit 909790a423
+5
View File
@@ -157,6 +157,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()