Skip to content

Commit 83ddf62

Browse files
committed
faster way to print Thread ID
1 parent 67bf060 commit 83ddf62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/logsink/logsink.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ func textPrintf(m *Meta, textSinks []Text, format string, args ...any) (n int, e
239239
buf.Write(strconv.AppendInt(tmp[:0], int64(m.Line), 10))
240240
}
241241
buf.WriteString(" (")
242-
buf.WriteString(fmt.Sprintf("%v",m.Thread))
242+
nDigits(buf, 7, uint64(m.Thread), ' ')
243243
buf.WriteString(") ")
244244

245245
msgStart := buf.Len()

0 commit comments

Comments
 (0)