Skip to content

Commit

Permalink
Rename to TraceCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
irees committed Jun 13, 2024
1 parent f8dee59 commit 4e3adcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func Trace() *zerolog.Event {
}

// TraceCheck checks if the log level is trace before evaluating the anon fn
func Tracefn(fn func()) {
func TraceCheck(fn func()) {
if Logger.GetLevel() == zerolog.TraceLevel {
fn()
}
Expand Down

0 comments on commit 4e3adcc

Please sign in to comment.