From 719c92a6521862b32932787148b5649722a28a80 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Thu, 25 May 2023 19:26:37 -0400 Subject: [PATCH] Remove debug prints --- v4/cmd/api.go | 3 --- v4/cmd/web.go | 9 --------- 2 files changed, 12 deletions(-) diff --git a/v4/cmd/api.go b/v4/cmd/api.go index a800734..e44632c 100644 --- a/v4/cmd/api.go +++ b/v4/cmd/api.go @@ -75,9 +75,6 @@ var apiCmd = &cobra.Command{ client.DB.Close() - log.Println("apiPort: ", apiPort) - log.Println("apiKey: ", apiKey) - e.Logger.Fatal(e.Start(fmt.Sprintf(":%d", apiPort))) }, } diff --git a/v4/cmd/web.go b/v4/cmd/web.go index 6e812f7..34f6bc0 100644 --- a/v4/cmd/web.go +++ b/v4/cmd/web.go @@ -6,7 +6,6 @@ import ( "fmt" "html/template" "io" - "log" "git.agecem.com/agecem/bottin/v4/web" "git.agecem.com/agecem/bottin/v4/web/webhandlers" @@ -74,14 +73,6 @@ var webCmd = &cobra.Command{ // 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( fmt.Sprintf(":%d", webPort))) },