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 5c13379 commit cb062ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/logging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func GetCaller(skip int, short bool) slog.Source {
return slog.Source{Function: "not available", File: "not available", Line: 0}
}

return callers[skip-1]
return callers[0]
}

// CallerText generates a string containing caller function, source and line.
Expand Down

0 comments on commit cb062ce

Please sign in to comment.