mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 17:22:33 +00:00
Merge pull request #1815 from jodh-intel/log-trace-msg
trace: Add missing log message
This commit is contained in:
commit
a5b8ff42f7
@ -88,5 +88,12 @@ func Trace(parent context.Context, name string) (opentracing.Span, context.Conte
|
|||||||
span.SetTag("source", "runtime")
|
span.SetTag("source", "runtime")
|
||||||
span.SetTag("component", "cli")
|
span.SetTag("component", "cli")
|
||||||
|
|
||||||
|
// This is slightly confusing: when tracing is disabled, trace spans
|
||||||
|
// are still created - but the tracer used is a NOP. Therefore, only
|
||||||
|
// display the message when tracing is really enabled.
|
||||||
|
if tracing {
|
||||||
|
kataUtilsLogger.Debugf("created span %v", span)
|
||||||
|
}
|
||||||
|
|
||||||
return span, ctx
|
return span, ctx
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user