Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Log SQL executions at Trace instead of Debug #36

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Log SQL executions at Trace instead of Debug
Logging every time SQL is executed is overly verbose at the debug level.
Log them at Trace instead.

Signed-off-by: Nick Hale <4175918+njhale@users.noreply.github.com>
  • Loading branch information
njhale committed Nov 14, 2023
commit 9b64697565f277705e95c89250498091ca8730ac
2 changes: 1 addition & 1 deletion pkg/db/glogrus/glogrus.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (l *Logger) Trace(ctx context.Context, begin time.Time, fc func() (string,
return
}

log.Debug("sql query executed")
log.Trace("sql query executed")
}

// complete ensures that the Logger is fully initialized.
Expand Down