mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
trace: Bootstrap to show the correct source line number (#16989)
This commit is contained in:
@@ -62,8 +62,8 @@ func (bs *bootstrapTracer) Empty() bool {
|
||||
return empty
|
||||
}
|
||||
|
||||
func (bs *bootstrapTracer) Record(msg string) {
|
||||
source := getSource(2)
|
||||
func (bs *bootstrapTracer) Record(msg string, skip int) {
|
||||
source := getSource(skip + 1)
|
||||
bs.mu.Lock()
|
||||
now := time.Now().UTC()
|
||||
bs.info[bs.idx] = bootstrapInfo{
|
||||
|
||||
Reference in New Issue
Block a user