mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 04:00:25 +03:00
update: For source builds look for absolute path. (#3780)
os.Args[0] doesn't point to absolute path we need use exec.LookPath to find the absolute path before sending os.Stat().
This commit is contained in:
@@ -119,6 +119,7 @@ func fatalIf(err error, msg string, data ...interface{}) {
|
||||
if e, ok := err.(*Error); ok {
|
||||
fields["stack"] = strings.Join(e.Trace(), " ")
|
||||
}
|
||||
|
||||
for _, log := range log.loggers {
|
||||
log.WithFields(fields).Fatalf(msg, data...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user