Skip to content

Commit

Permalink
remove print
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielolivrp committed Nov 6, 2023
1 parent 3902c68 commit 47b7810
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions services/account_service.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package services

import (
"fmt"
"os"
"path/filepath"
"zapmeow/models"
Expand Down Expand Up @@ -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
})
Expand Down
4 changes: 3 additions & 1 deletion services/wpp_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 47b7810

Please sign in to comment.