updateResources: Log result after calculateSandboxMemory

Log result after calculateSandboxMemory in updateResources.

Fixes: #2367

Signed-off-by: Hui Zhu <teawater@antfin.com>
This commit is contained in:
Hui Zhu 2021-08-01 09:39:32 +08:00
parent b94252a5fa
commit 767a41ce56

View File

@ -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 {