mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-05 05:32:59 +00:00
runtime-rs: ch: Honour debug setting
Enable Cloud Hypervisor debug based on the specified configuration rather than hard-coding debug to be disabled. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
e3c2d727ba
commit
96555186b3
@ -229,7 +229,13 @@ impl CloudHypervisorInner {
|
||||
async fn cloud_hypervisor_launch(&mut self, _timeout_secs: i32) -> Result<()> {
|
||||
self.cloud_hypervisor_ensure_not_launched().await?;
|
||||
|
||||
let debug = false;
|
||||
let cfg = self
|
||||
.config
|
||||
.as_ref()
|
||||
.ok_or("no hypervisor config for CH")
|
||||
.map_err(|e| anyhow!(e))?;
|
||||
|
||||
let debug = cfg.debug_info.enable_debug;
|
||||
|
||||
let disable_seccomp = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user