Add log rotation logic

This commit is contained in:
Andras Schmelczer 2025-10-28 07:44:06 +00:00
parent f3bc3c58d1
commit fe2ac7018d
12 changed files with 491 additions and 29 deletions

View file

@ -55,6 +55,7 @@ pub struct SerializedError {
impl Display for SerializedError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}: {}", self.error_type, self.message)?;
if !self.causes.is_empty() {
write!(f, "\nCauses:\n")?;
for cause in &self.causes {