Method
new
(sandbox_id: String, tx: mpsc::Sender<SandboxLogLine>)
Source from the content-addressed store, hash-verified
| 27 | |
| 28 | impl 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 | |
| 42 | impl<S: Subscriber> Layer<S> for LogPushLayer { |
Callers
nothing calls this directly
Tested by
no test coverage detected