Add log rotation logic
This commit is contained in:
parent
f3bc3c58d1
commit
fe2ac7018d
12 changed files with 491 additions and 29 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue