From 8ee8ad777c37e6a559a6ca30e70a12089074a7ca Mon Sep 17 00:00:00 2001 From: kannappanr <30541348+kannappanr@users.noreply.github.com> Date: Thu, 24 Jan 2019 00:30:00 -0800 Subject: [PATCH] logger: do not interpret encoded url as format string (#7110) Error logger currently interprets encoded url in the error as a format string. --- cmd/logger/utils.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/logger/utils.go b/cmd/logger/utils.go index 1c1c0622d..7ee884717 100644 --- a/cmd/logger/utils.go +++ b/cmd/logger/utils.go @@ -39,11 +39,11 @@ var ( } return fmt.Sprint }() - ColorFgRed = func() func(format string, a ...interface{}) string { + ColorFgRed = func() func(a ...interface{}) string { if isTerminal() { - return color.New(color.FgRed).SprintfFunc() + return color.New(color.FgRed).SprintFunc() } - return fmt.Sprintf + return fmt.Sprint }() ColorBgRed = func() func(format string, a ...interface{}) string { if isTerminal() {