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:
Harshavardhana
2017-02-21 01:32:05 -08:00
committed by GitHub
parent 097dd7418a
commit 99a12613a3
6 changed files with 72 additions and 24 deletions
+1
View File
@@ -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...)
}