From 2c1282f537ef89389e537e849ee906cc53d0f811 Mon Sep 17 00:00:00 2001 From: Ian Jackson <ijackson@chiark.greenend.org.uk> Date: Wed, 4 May 2022 18:41:35 +0100 Subject: [PATCH] Make LogRotation Serialize We want to be able to serialise as well as deserialise configurations. --- crates/arti/src/logging.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/arti/src/logging.rs b/crates/arti/src/logging.rs index 3c3ba0b1ad..a2ee51d00e 100644 --- a/crates/arti/src/logging.rs +++ b/crates/arti/src/logging.rs @@ -98,7 +98,7 @@ pub struct LogfileConfig { } /// How often to rotate a log file -#[derive(Deserialize, Debug, Clone, Copy, Eq, PartialEq)] +#[derive(Debug, Clone, Serialize, Deserialize, Copy, Eq, PartialEq)] #[non_exhaustive] #[serde(rename_all = "lowercase")] pub enum LogRotation { -- GitLab