mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-06 07:27:28 +00:00
runtime: Properly set default hyp loglevel to 1
Tweak default HypervisorLoglevel config option for clh to 1. Signed-off-by: Cameron Baird <cameronbaird@microsoft.com>
This commit is contained in:
parent
f485e52f75
commit
d48116114e
src/runtime/pkg/katautils
@ -521,7 +521,9 @@ func (h hypervisor) defaultBridges() uint32 {
|
||||
}
|
||||
|
||||
func (h hypervisor) defaultHypervisorLoglevel() uint32 {
|
||||
if h.HypervisorLoglevel > maxHypervisorLoglevel {
|
||||
if h.HypervisorLoglevel == 0 {
|
||||
return defaultHypervisorLoglevel
|
||||
} else if h.HypervisorLoglevel > maxHypervisorLoglevel {
|
||||
return maxHypervisorLoglevel
|
||||
}
|
||||
|
||||
|
@ -184,6 +184,7 @@ func createAllRuntimeConfigFiles(dir, hypervisor string) (testConfig testRuntime
|
||||
GuestHookPath: defaultGuestHookPath,
|
||||
VhostUserStorePath: defaultVhostUserStorePath,
|
||||
SharedFS: sharedFS,
|
||||
HypervisorLoglevel: defaultHypervisorLoglevel,
|
||||
VirtioFSDaemon: virtioFSdaemon,
|
||||
VirtioFSCache: defaultVirtioFSCacheMode,
|
||||
PFlash: []string{},
|
||||
|
Loading…
Reference in New Issue
Block a user