From 9f10251e62cd7992e2d574203117c10b93b74407 Mon Sep 17 00:00:00 2001 From: maxlerebourg Date: Sat, 31 Dec 2022 12:08:20 +0100 Subject: [PATCH] Update simpleredis.go --- simpleredis.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/simpleredis.go b/simpleredis.go index 9e09046..fcad152 100644 --- a/simpleredis.go +++ b/simpleredis.go @@ -10,8 +10,6 @@ import ( "net/textproto" "strings" "time" - - logger "github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin/pkg/logger" ) // Error strings for redis. @@ -47,9 +45,7 @@ func genRedisArray(params ...[]byte) []byte { func send(wr *textproto.Writer, method string, data []byte) { if err := wr.PrintfLine(string(data)); err != nil { - logger.Error(fmt.Sprintf("redis:%s %s", method, err.Error())) - } else { - logger.Debug(fmt.Sprintf("redis:%s", method)) + fmt.Printf("redis:%s %s", method, err.Error()) } } @@ -62,7 +58,7 @@ func askRedis(hostnamePort string, cmd RedisCmd, channel chan RedisCmd) { } defer func() { if err := conn.Close(); err != nil { - logger.Error(fmt.Sprintf("redis:connClose %s", err.Error())) + fmt.Printf("redis:connClose %s", err.Error()) } }()