summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2020-07-23 19:24:22 -0400
committerGitHub <noreply@github.com>2020-07-24 02:24:22 +0300
commit8d1cd4d2523d2123e0cdfc1bef579247706e4e09 (patch)
tree1b683e5c345e4c69ec8384adbbfd65af6f19a76a /modules
parent64eaa2a942da16392139c831d06253e2eed778d6 (diff)
downloadgitea-8d1cd4d2523d2123e0cdfc1bef579247706e4e09.tar.gz
gitea-8d1cd4d2523d2123e0cdfc1bef579247706e4e09.zip
Fix double-indirection bug in logging IDs (#12294) (#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 <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'modules')
-rw-r--r--modules/log/colors.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/log/colors.go b/modules/log/colors.go
index 282d0c919e..d8e5776735 100644
--- a/modules/log/colors.go
+++ b/modules/log/colors.go
@@ -355,7 +355,7 @@ func NewColoredValueBytes(value interface{}, colorBytes *[]byte) *ColoredValue {
// The Value will be colored with FgCyan
// If a ColoredValue is provided it is not changed
func NewColoredIDValue(value interface{}) *ColoredValue {
- return NewColoredValueBytes(&value, &fgCyanBytes)
+ return NewColoredValueBytes(value, &fgCyanBytes)
}
// Format will format the provided value and protect against ANSI color spoofing within the value