From 36ce7028a067fe05a3733c319bce763b5cc2d033 Mon Sep 17 00:00:00 2001 From: Marvin Preuss Date: Wed, 11 Aug 2021 14:24:22 +0200 Subject: [PATCH] mpc: enabling logging --- pkg/mpc/mpc.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/mpc/mpc.go b/pkg/mpc/mpc.go index daf73a4..726f4a4 100644 --- a/pkg/mpc/mpc.go +++ b/pkg/mpc/mpc.go @@ -7,6 +7,7 @@ import ( "github.com/fhs/gompd/v2/mpd" "github.com/rs/zerolog" + "github.com/rs/zerolog/log" "go.xsfx.dev/schnutibox/internal/config" "go.xsfx.dev/schnutibox/internal/metrics" ) @@ -28,7 +29,7 @@ func Conn() (*mpd.Client, error) { default: c, err := mpd.Dial("tcp", fmt.Sprintf("%s:%d", config.Cfg.MPD.Hostname, config.Cfg.MPD.Port)) if err != nil { - // log.Error().Err(err).Msg("could not connect") + log.Error().Err(err).Msg("could not connect") time.Sleep(timeoutWait)