Remove debug prints
This commit is contained in:
parent
3aa7faa2f6
commit
719c92a652
2 changed files with 0 additions and 12 deletions
|
@ -75,9 +75,6 @@ var apiCmd = &cobra.Command{
|
||||||
|
|
||||||
client.DB.Close()
|
client.DB.Close()
|
||||||
|
|
||||||
log.Println("apiPort: ", apiPort)
|
|
||||||
log.Println("apiKey: ", apiKey)
|
|
||||||
|
|
||||||
e.Logger.Fatal(e.Start(fmt.Sprintf(":%d", apiPort)))
|
e.Logger.Fatal(e.Start(fmt.Sprintf(":%d", apiPort)))
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,6 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"html/template"
|
"html/template"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
|
||||||
|
|
||||||
"git.agecem.com/agecem/bottin/v4/web"
|
"git.agecem.com/agecem/bottin/v4/web"
|
||||||
"git.agecem.com/agecem/bottin/v4/web/webhandlers"
|
"git.agecem.com/agecem/bottin/v4/web/webhandlers"
|
||||||
|
@ -74,14 +73,6 @@ var webCmd = &cobra.Command{
|
||||||
|
|
||||||
// Execution
|
// Execution
|
||||||
|
|
||||||
fmt.Println("webPort: ", webPort)
|
|
||||||
fmt.Println("web.port: ", viper.GetInt("web.port"))
|
|
||||||
webPortFlag, err := cmd.Flags().GetInt("web-port")
|
|
||||||
if err != nil {
|
|
||||||
log.Fatal(err)
|
|
||||||
}
|
|
||||||
fmt.Println("web-port: ", webPortFlag)
|
|
||||||
|
|
||||||
e.Logger.Fatal(e.Start(
|
e.Logger.Fatal(e.Start(
|
||||||
fmt.Sprintf(":%d", webPort)))
|
fmt.Sprintf(":%d", webPort)))
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue