containers / virtcontainers

A Go package for building hardware virtualized container runtimes
Apache License 2.0
139 stars 43 forks source link

Make package logger specify correct source field #571

Closed jodh-intel closed 6 years ago

jodh-intel commented 6 years ago

The oci and hyperstart packages have a SetLogger() API. But they don't correctly set the source field. This means that if a caller uses SetLogger(), all log messages coming from these packages will appear to come from the caller, not from virtcontainers.

See: https://github.com/clearcontainers/runtime/issues/934