don't store redundant has_meaningfull_message

This commit is contained in:
Robin Appelman 2024-07-22 22:29:07 +02:00
commit 3af655c17c
4 changed files with 4 additions and 4 deletions

View file

@ -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,

View file

@ -27,6 +27,7 @@ pub struct LoggingStatement<'a> {
}
#[derive(Debug, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "lowercase")]
pub enum MessagePart {
Literal(String),
PlaceHolder(String),