Skip to content

Commit

Permalink
update implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-carlton committed Oct 27, 2024
1 parent 0851a3c commit 9977475
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/logging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,11 @@ func ToJSON(log *slog.Logger, data interface{}) string {

func Debug(pattern string, args ...interface{}) {
if LogLevel <= slog.LevelDebug {
pattern := CallerText(MyCallersCallersCaller) + pattern
pattern := CallerText(MyCallersCaller) + pattern
fmt.Printf(pattern, args...)
}
}

func ErrorReport(text string, err error) error {
return fmt.Errorf("%s - %s, %w", CallerText(MyCaller), text, err)
return fmt.Errorf("%s - %s, %w", CallerText(MyCallersCaller), text, err)
}

0 comments on commit 9977475

Please sign in to comment.