Skip to content

Commit e14d8ac

Browse files
committed
Add filter
1 parent 8b2c829 commit e14d8ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/logging.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ pub fn setup_layers(
3131
let emit_kvp_layer = match EmitKVPLayer::new(std::path::PathBuf::from(
3232
"/var/lib/hyperv/.kvp_pool_1",
3333
)) {
34-
Ok(layer) => Some(layer),
34+
Ok(layer) => {
35+
let filter = EnvFilter::new("INFO");
36+
Some(layer.with_filter(filter))
37+
}
3538
Err(e) => {
3639
event!(Level::ERROR, "Failed to initialize EmitKVPLayer: {}. Continuing without KVP logging.", e);
3740
None

0 commit comments

Comments
 (0)