diff options
author | zeripath <art27@cantab.net> | 2020-07-23 10:26:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-23 12:26:45 +0300 |
commit | d25f44285ae4e701a2ad9c97fbd22320a23a81eb (patch) | |
tree | 6696184f1aedc5bd4c2d8112c7514bda4b13b39f /modules | |
parent | 2753d72773ae75e326d342757aa0159642a4a794 (diff) | |
download | gitea-d25f44285ae4e701a2ad9c97fbd22320a23a81eb.tar.gz gitea-d25f44285ae4e701a2ad9c97fbd22320a23a81eb.zip |
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 <art27@cantab.net>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/log/colors.go | 2 |
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 |