fixed
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user