Skip to content

Commit

Permalink
added closing database log
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFireMike committed Jan 6, 2021
1 parent e812b0f commit f590904
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit f590904

Please sign in to comment.