MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / clamp_log_level

Function clamp_log_level

crates/openshell-driver-vm/src/runtime.rs:966–975  ·  view source on GitHub ↗
(level: u32)

Source from the content-addressed store, hash-verified

964}
965
966fn clamp_log_level(level: u32) -> u32 {
967 match level {
968 0 => ffi::KRUN_LOG_LEVEL_OFF,
969 1 => ffi::KRUN_LOG_LEVEL_ERROR,
970 2 => ffi::KRUN_LOG_LEVEL_WARN,
971 3 => ffi::KRUN_LOG_LEVEL_INFO,
972 4 => ffi::KRUN_LOG_LEVEL_DEBUG,
973 _ => ffi::KRUN_LOG_LEVEL_TRACE,
974 }
975}
976
977struct VmContext {
978 krun: &'static ffi::LibKrun,

Callers 1

createMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected