mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-07-17 13:28:10 -07:00
lib/gsmtap_parser: downgrade unsupported log to debug msg
Previously this was an error message to help underscore when a device was sending unexpected messages, but now that we're receiving measurement logs which have no place in GSMTAP frames, it's expected to skip some log messages.
This commit is contained in:
committed by
Will Greenberg
parent
5def0b388e
commit
6922646a5d
@@ -2,7 +2,7 @@ use crate::diag::Message;
|
||||
use crate::diag::diaglog::{LogBody, Nas4GMessageDirection, Timestamp};
|
||||
use crate::gsmtap::{GsmtapHeader, GsmtapMessage, GsmtapType, LteNasSubtype, LteRrcSubtype};
|
||||
|
||||
use log::error;
|
||||
use log::debug;
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
@@ -167,7 +167,7 @@ fn log_to_gsmtap(value: LogBody) -> Result<Option<GsmtapMessage>, GsmtapParserEr
|
||||
}
|
||||
LogBody::LteMacRachResponse { payload } => Ok(parse_rach_response(&payload)),
|
||||
_ => {
|
||||
error!("gsmtap_sink: ignoring unhandled log type: {value:?}");
|
||||
debug!("gsmtap_sink: ignoring unhandled log type: {value:?}");
|
||||
Ok(None)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user