From f59090492b4762d9e7d32cff281b3a5666c5095f Mon Sep 17 00:00:00 2001 From: mikameyer Date: Wed, 6 Jan 2021 17:09:58 +0100 Subject: [PATCH] added closing database log --- cmd/root.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/root.go b/cmd/root.go index e3d8d82..1106d8e 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -221,6 +221,8 @@ func handleRequest(r request.Request) { os.Exit(3) } + log.Ctx(ctx).Trace().Msg("closed connection to the database") + b, err := parser.Parse(resp, viper.GetString("format")) if err != nil { log.Ctx(ctx).Error().Err(err).Msg("Request successful, but failed to parse response")