mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
logger: do not interpret encoded url as format string (#7110)
Error logger currently interprets encoded url in the error as a format string.
This commit is contained in:
parent
82af0be1aa
commit
8ee8ad777c
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user