Skip to content

Commit e093c80

Browse files
committed
log: reword comment
Change references to non-existent logger functions (from an earlier iteration on the Trace2 logger) to those actually in use by Trace2. Signed-off-by: Victoria Dye <[email protected]>
1 parent dfcd4b7 commit e093c80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/log/trace2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (t *Trace2) sharedFields(ctx context.Context) (context.Context, fieldList)
132132
// Get the caller of the function in trace2.go
133133
// Skip up two levels:
134134
// 0: this function
135-
// 1: the caller of this function (StartTrace, LogEvent, etc.)
135+
// 1: the caller of this function (logStart, Error, etc.)
136136
// 2: the function calling this trace2 library
137137
_, fileName, lineNum, ok := runtime.Caller(2)
138138
if ok {

0 commit comments

Comments
 (0)