From 767a41ce56331cd2ac217f1873495c68a0bcb388 Mon Sep 17 00:00:00 2001 From: Hui Zhu Date: Sun, 1 Aug 2021 09:39:32 +0800 Subject: [PATCH] updateResources: Log result after calculateSandboxMemory Log result after calculateSandboxMemory in updateResources. Fixes: #2367 Signed-off-by: Hui Zhu --- src/runtime/virtcontainers/sandbox.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/virtcontainers/sandbox.go b/src/runtime/virtcontainers/sandbox.go index c84449ea9..592efb64b 100644 --- a/src/runtime/virtcontainers/sandbox.go +++ b/src/runtime/virtcontainers/sandbox.go @@ -1938,6 +1938,7 @@ func (s *Sandbox) updateResources(ctx context.Context) error { if sandboxneedPodSwap { sandboxSwapByte += hypervisorMemoryByte } + s.Logger().WithField("sandboxMemoryByte", sandboxMemoryByte).WithField("sandboxneedPodSwap", sandboxneedPodSwap).WithField("sandboxSwapByte", sandboxSwapByte).Debugf("updateResources: after calculateSandboxMemory") // Setup the SWAP in the guest if sandboxSwapByte > 0 {