fix log15 migration

master
q3k 2019-04-21 01:26:53 +02:00
parent 506a6742d8
commit 1e079df0e7
1 changed files with 1 additions and 3 deletions

View File

@ -65,9 +65,7 @@ func maybeTrace(ctx context.Context, f string, args ...interface{}) {
tr, ok := trace.FromContext(ctx)
if !ok {
if !Log {
log.Warning("no trace", "msg", fmtd)
}
log.Warn("no trace", "msg", fmtd)
return
}
tr.LazyPrintf(f, args...)