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 ecc5995 commit df90ad4
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 @@ -137,7 +137,7 @@ func setLogLevelName(a slog.Attr) slog.Attr {
// setCallerSourceName is used to set to source information to the caller of the function calling log.
func setCallerSourceName(a slog.Attr) slog.Attr {
if a.Key == slog.SourceKey { //nolint: nestif
source := GetCaller(11, false) //nolint: mnd
source := GetCaller(MyCaller, false)
if sourcePathDepth >= 0 {
path := strings.Split(filepath.Dir(source.File), "/")
if len(path) < sourcePathDepth {
Expand Down

0 comments on commit df90ad4

Please sign in to comment.