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

Method new

crates/openshell-supervisor-process/src/log_push.rs:29–39  ·  view source on GitHub ↗
(sandbox_id: String, tx: mpsc::Sender<SandboxLogLine>)

Source from the content-addressed store, hash-verified

27
28impl LogPushLayer {
29 pub fn new(sandbox_id: String, tx: mpsc::Sender<SandboxLogLine>) -> Self {
30 let max_level = std::env::var("OPENSHELL_LOG_PUSH_LEVEL")
31 .ok()
32 .and_then(|s| s.parse().ok())
33 .unwrap_or(tracing::Level::INFO);
34 Self {
35 sandbox_id,
36 tx,
37 max_level,
38 }
39 }
40}
41
42impl<S: Subscriber> Layer<S> for LogPushLayer {

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected