Skip to content

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskorn committed Jul 23, 2024
1 parent bc9704f commit dc90524
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spanlogger/spanlogger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"context"
"fmt"
"io"
"path/filepath"
"runtime"
"strings"
"testing"
Expand Down Expand Up @@ -296,7 +297,7 @@ func TestSpanLogger_CallerInfo(t *testing.T) {
}

func toCallerInfo(path string, lineNumber int) string {
fileName := path[strings.LastIndex(path, "/")+1:]
fileName := filepath.Base(path)

return fmt.Sprintf("%s:%v", fileName, lineNumber)
}

0 comments on commit dc90524

Please sign in to comment.