From 47b7810a965602bc23b1bde34ffb0ca2ffb3adc0 Mon Sep 17 00:00:00 2001 From: Gabriel Augusto Date: Mon, 6 Nov 2023 09:29:21 -0300 Subject: [PATCH] remove print --- services/account_service.go | 2 -- services/wpp_service.go | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/account_service.go b/services/account_service.go index 76c1468..8d6abbd 100644 --- a/services/account_service.go +++ b/services/account_service.go @@ -1,7 +1,6 @@ package services import ( - "fmt" "os" "path/filepath" "zapmeow/models" @@ -64,7 +63,6 @@ func (a *accountService) deleteAccountDirectory(instanceID string) error { if err != nil { return err } - fmt.Printf("File removed: %s\n", path) } return nil }) diff --git a/services/wpp_service.go b/services/wpp_service.go index 317d39c..2216649 100644 --- a/services/wpp_service.go +++ b/services/wpp_service.go @@ -511,7 +511,9 @@ func (w *wppService) qrcode(instanceID string) { qrChan, err := instance.Client.GetQRChannel(context.Background()) if err != nil { if !errors.Is(err, whatsmeow.ErrQRStoreContainsID) { - fmt.Println("failed to get qr channel") + if w.app.Config.Env != "production" { + fmt.Println("failed to get qr channel") + } } } else { err = instance.Client.Connect()