Skip to content

Commit

Permalink
Merge pull request #68 from hashicorp/fix-gomod-caller
Browse files Browse the repository at this point in the history
gomod caller does not match regex
  • Loading branch information
drewbailey authored Jun 1, 2020
2 parents 8476a63 + ecf87bb commit 4a9e55f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intlogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func trimCallerPath(path string) string {
return path[idx+1:]
}

var logImplFile = regexp.MustCompile(`github.com/hashicorp/go-hclog/.+logger.go$`)
var logImplFile = regexp.MustCompile(`.+intlogger.go|.+interceptlogger.go$`)

// Non-JSON logging format function
func (l *intLogger) logPlain(t time.Time, name string, level Level, msg string, args ...interface{}) {
Expand Down

0 comments on commit 4a9e55f

Please sign in to comment.