mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
log: Do not interpret verbs in object names in console output (#16233)
This commit is contained in:
parent
2d60bf8c50
commit
939c0100a6
@ -541,7 +541,7 @@ func serverMain(ctx *cli.Context) {
|
||||
maxProcs := runtime.GOMAXPROCS(0)
|
||||
cpuProcs := runtime.NumCPU()
|
||||
if maxProcs < cpuProcs {
|
||||
logger.Info(color.RedBold("WARNING: Detected GOMAXPROCS(%d) < NumCPU(%d), please make sure to provide all PROCS to MinIO for optimal performance", maxProcs, cpuProcs))
|
||||
logger.Info(color.RedBoldf("WARNING: Detected GOMAXPROCS(%d) < NumCPU(%d), please make sure to provide all PROCS to MinIO for optimal performance", maxProcs, cpuProcs))
|
||||
}
|
||||
|
||||
// Configure server.
|
||||
|
@ -38,7 +38,14 @@ var (
|
||||
return fmt.Sprintf
|
||||
}()
|
||||
|
||||
RedBold = func() func(format string, a ...interface{}) string {
|
||||
RedBold = func() func(a ...interface{}) string {
|
||||
if IsTerminal() {
|
||||
return color.New(color.FgRed, color.Bold).SprintFunc()
|
||||
}
|
||||
return fmt.Sprint
|
||||
}()
|
||||
|
||||
RedBoldf = func() func(format string, a ...interface{}) string {
|
||||
if IsTerminal() {
|
||||
return color.New(color.FgRed, color.Bold).SprintfFunc()
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ func (c *Target) Send(e interface{}, logKind string) error {
|
||||
tagString = "\n " + tagString
|
||||
}
|
||||
|
||||
msg := color.FgRed(color.Bold(entry.Trace.Message))
|
||||
msg := color.RedBold(entry.Trace.Message)
|
||||
output := fmt.Sprintf("\n%s\n%s%s%s%s%s%s\nError: %s%s\n%s",
|
||||
apiString, timeString, deploymentID, requestID, remoteHost, host, userAgent,
|
||||
msg, tagString, strings.Join(trace, "\n"))
|
||||
|
Loading…
Reference in New Issue
Block a user