mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-26 07:29:59 -07:00
Filter out asn1_codecs warnings in rayhunter-daemon
...and make a small UI change so that folks won't get concerned about parsing errors. Right now all the "undecoded extensions" noise goes into rayhunter-daemon.log, and users get concerned about it when browsing that through the UI.
This commit is contained in:
committed by
Will Greenberg
parent
5b2cf3cec4
commit
1f171521e4
@@ -1,5 +1,16 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// Initialize logging with the given default level, suppressing noisy warnings
|
||||
/// from hampi about undecoded ASN1 extensions. Respects `RUST_LOG` overrides.
|
||||
pub fn init_logging(default_level: log::LevelFilter) {
|
||||
env_logger::Builder::new()
|
||||
.filter_level(default_level)
|
||||
//Filter out a stupid massive amount of uneccessary warnings from hampi about undecoded extensions
|
||||
.filter_module("asn1_codecs", log::LevelFilter::Error)
|
||||
.parse_default_env()
|
||||
.init();
|
||||
}
|
||||
|
||||
pub mod analysis;
|
||||
pub mod diag;
|
||||
pub mod gsmtap;
|
||||
|
||||
Reference in New Issue
Block a user