Remove debug prints

This commit is contained in:
Victor Lacasse-Beaudoin 2023-05-25 19:26:37 -04:00
parent 3aa7faa2f6
commit 719c92a652
2 changed files with 0 additions and 12 deletions

View file

@ -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)))
}, },
} }

View file

@ -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)))
}, },