Moved logging for task worker inside task execution logic

This commit is contained in:
Alphonse Paix
2025-10-09 19:27:50 +02:00
parent ef9f860da2
commit 45f529902d
4 changed files with 48 additions and 29 deletions

View File

@@ -1,3 +1,5 @@
use std::fmt::Display;
use validator::Validate;
#[derive(Debug, Validate)]
@@ -22,6 +24,12 @@ impl AsRef<str> for SubscriberEmail {
}
}
impl Display for SubscriberEmail {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.email)
}
}
#[cfg(test)]
mod tests {
use super::SubscriberEmail;