Skip to content

Commit d25f442

Browse files
authored
Fix double-indirection bug in logging IDs (#12294)
This PR fixes a bug in log.NewColoredIDValue() which led to a double indirection and incorrect IDs being printed out. Signed-off-by: Andrew Thornton <[email protected]>
1 parent 2753d72 commit d25f442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/log/colors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ func NewColoredValueBytes(value interface{}, colorBytes *[]byte) *ColoredValue {
355355
// The Value will be colored with FgCyan
356356
// If a ColoredValue is provided it is not changed
357357
func NewColoredIDValue(value interface{}) *ColoredValue {
358-
return NewColoredValueBytes(&value, &fgCyanBytes)
358+
return NewColoredValueBytes(value, &fgCyanBytes)
359359
}
360360

361361
// Format will format the provided value and protect against ANSI color spoofing within the value

0 commit comments

Comments
 (0)