mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Change order of trace source in error log (#7599)
Change the order of trace source that gets printed on the console.
This commit is contained in:
parent
ba76cd3268
commit
a436f2baa5
@ -45,12 +45,13 @@ func (c *Target) Send(e interface{}) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
trace := make([]string, len(entry.Trace.Source))
|
traceLength := len(entry.Trace.Source)
|
||||||
|
trace := make([]string, traceLength)
|
||||||
|
|
||||||
// Add a sequence number and formatting for each stack trace
|
// Add a sequence number and formatting for each stack trace
|
||||||
// No formatting is required for the first entry
|
// No formatting is required for the first entry
|
||||||
for i, element := range entry.Trace.Source {
|
for i, element := range entry.Trace.Source {
|
||||||
trace[i] = fmt.Sprintf("%8v: %s", i+1, element)
|
trace[i] = fmt.Sprintf("%8v: %s", traceLength-i, element)
|
||||||
}
|
}
|
||||||
|
|
||||||
tagString := ""
|
tagString := ""
|
||||||
|
Loading…
Reference in New Issue
Block a user