Skip to content

Commit

Permalink
filename consideration for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
thnk2wn committed Mar 30, 2022
1 parent 5257ee8 commit 30b3447
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ outer:

func getCallerIgnoringLogMulti(callDepth int) (string, int) {
// the +1 is to ignore this (getCallerIgnoringLogMulti) frame
// Can't easily do just suffix w/o regex now since we use modules now with varying version number:
// /home/ubuntu/gocode/pkg/mod/github.com/op/[email protected]/log_nix.go
return getCaller(
callDepth+1,
"/pkg/log/log.go",
Expand All @@ -46,5 +48,6 @@ func getCallerIgnoringLogMulti(callDepth int) (string, int) {
"go-logging/log_nix.go",
"go-logging/format.go",
"go-logging/level.go",
"go-logging/logger.go")
"go-logging/logger.go",
"log_nix.go")
}

0 comments on commit 30b3447

Please sign in to comment.