mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-03 10:04:12 +02:00
don't store redundant has_meaningfull_message
This commit is contained in:
parent
a0dc7450a4
commit
3af655c17c
4 changed files with 4 additions and 4 deletions
|
|
@ -40,7 +40,6 @@ pub struct LoggingStatement<'a> {
|
|||
pub path: &'a str,
|
||||
pub line: usize,
|
||||
pub placeholders: &'a [&'a str],
|
||||
pub has_meaningful_message: bool,
|
||||
pub exception: Option<&'a str>,
|
||||
pub regex: &'a str,
|
||||
}
|
||||
|
|
@ -76,7 +75,6 @@ pub fn bake_statement(output: &mut String, statement: &crate::LoggingStatement)
|
|||
level: statement.level.into(),
|
||||
path: statement.path,
|
||||
line: statement.line,
|
||||
has_meaningful_message: statement.has_meaningful_message,
|
||||
exception: statement.exception.as_deref(),
|
||||
placeholders: &placeholders,
|
||||
regex: &pattern,
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ pub struct LoggingStatement<'a> {
|
|||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub enum MessagePart {
|
||||
Literal(String),
|
||||
PlaceHolder(String),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue