mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-23 17:24:18 +01:00
logging: Add containerID and sandboxID to all log calls
Adding cid+sid fields to the log entries generated by most of the CLI commands will make debugging across the system easier. Fixes #452. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
@@ -34,6 +34,8 @@ instance of a container.`,
|
||||
}
|
||||
|
||||
func state(containerID string) error {
|
||||
kataLog = kataLog.WithField("container", containerID)
|
||||
|
||||
// Checks the MUST and MUST NOT from OCI runtime specification
|
||||
status, _, err := getExistingContainerInfo(containerID)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user