Skip to content

Commit 9e5f73f

Browse files
committed
remove debug logs
Signed-off-by: Arvindh <arvindh91@gmail.com>
1 parent f0b1499 commit 9e5f73f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pkg/postgres/errorhandler.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
package postgres
55

66
import (
7-
"fmt"
8-
97
"github.com/absmach/supermq/pkg/errors"
108
repoerr "github.com/absmach/supermq/pkg/errors/repository"
119
"github.com/jackc/pgx/v5/pgconn"
@@ -40,8 +38,6 @@ func (eh errHandler) HandleError(wrapper, err error) error {
4038
switch pqErr.Code {
4139
case errDuplicate:
4240
if knownErr, ok := eh.duplicateErrors.GetError(pqErr.ConstraintName); ok {
43-
fmt.Printf("knownErr type %T\n", knownErr)
44-
fmt.Printf("wrapper Error type %T\n", errors.Wrap(wrapper, knownErr))
4541
return errors.Wrap(wrapper, knownErr)
4642
}
4743
return errors.Wrap(repoerr.ErrConflict, err)

0 commit comments

Comments
 (0)