Skip to content

Commit 8d1cd4d

Browse files
Fix double-indirection bug in logging IDs (go-gitea#12294) (go-gitea#12308)
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]> Co-authored-by: zeripath <[email protected]>
1 parent 64eaa2a commit 8d1cd4d

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)