Skip to content

Commit 37967af

Browse files
authored
Add default for log format (#410)
1 parent cc3ca8e commit 37967af

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

v-api/src/config.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ pub enum AppConfigError {
3737
InvalidLogFormatVariant,
3838
}
3939

40-
#[derive(Debug)]
40+
#[derive(Debug, Default)]
4141
pub enum ServerLogFormat {
42+
#[default]
4243
Json,
4344
Pretty,
4445
}

0 commit comments

Comments
 (0)