Skip to content

Commit

Permalink
fix endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Oct 29, 2024
1 parent 278eab8 commit 569dd99
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func Execute() error {
}
}

endpointFromEnv := os.Getenv("PUSH_ENDPOINT")
if gin.Mode() == gin.DebugMode {
config.MetricsFile = "./db/metrics.sqlite"

Expand All @@ -75,10 +76,6 @@ func Execute() error {

if config.Debug && gin.Mode() != gin.DebugMode {
gin.SetMode(gin.DebugMode)
}

endpointFromEnv := os.Getenv("PUSH_ENDPOINT")
if config.Debug {
log.Printf("[%s] Debug is enabled.", time.Now().Format("2006-01-02 15:04:05"))
}

Expand Down

0 comments on commit 569dd99

Please sign in to comment.