mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 08:47:56 +00:00
Merge pull request #10955 from microsoft/cameronbaird/hyp-loglevel-default-upstream
runtime: Properly set default hyp loglevel to 1
This commit is contained in:
commit
edf6af2a43
@ -521,7 +521,9 @@ func (h hypervisor) defaultBridges() uint32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (h hypervisor) defaultHypervisorLoglevel() uint32 {
|
func (h hypervisor) defaultHypervisorLoglevel() uint32 {
|
||||||
if h.HypervisorLoglevel > maxHypervisorLoglevel {
|
if h.HypervisorLoglevel == 0 {
|
||||||
|
return defaultHypervisorLoglevel
|
||||||
|
} else if h.HypervisorLoglevel > maxHypervisorLoglevel {
|
||||||
return maxHypervisorLoglevel
|
return maxHypervisorLoglevel
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -184,6 +184,7 @@ func createAllRuntimeConfigFiles(dir, hypervisor string) (testConfig testRuntime
|
|||||||
GuestHookPath: defaultGuestHookPath,
|
GuestHookPath: defaultGuestHookPath,
|
||||||
VhostUserStorePath: defaultVhostUserStorePath,
|
VhostUserStorePath: defaultVhostUserStorePath,
|
||||||
SharedFS: sharedFS,
|
SharedFS: sharedFS,
|
||||||
|
HypervisorLoglevel: defaultHypervisorLoglevel,
|
||||||
VirtioFSDaemon: virtioFSdaemon,
|
VirtioFSDaemon: virtioFSdaemon,
|
||||||
VirtioFSCache: defaultVirtioFSCacheMode,
|
VirtioFSCache: defaultVirtioFSCacheMode,
|
||||||
PFlash: []string{},
|
PFlash: []string{},
|
||||||
|
Loading…
Reference in New Issue
Block a user