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 9977475 commit ae08f4e
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(MyCallersCaller) + pattern
pattern := CallerText(MyCaller) + pattern
fmt.Printf(pattern, args...)
}
}

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

0 comments on commit ae08f4e

Please sign in to comment.