mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-31 16:36:38 +00:00
Merge pull request #3290 from cmaf/tracing-span-logging-error
tracing: Add span name to logging error
This commit is contained in:
@@ -130,7 +130,7 @@ func Trace(parent context.Context, logger *logrus.Entry, name string, tags ...ma
|
||||
if logger == nil {
|
||||
logger = kataTraceLogger
|
||||
}
|
||||
logger.WithField("type", "bug").Error("trace called before context set")
|
||||
logger.WithField("type", "bug").WithField("name", name).Error("trace called before context set")
|
||||
parent = context.Background()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user