rename the fmt mode to human

This commit is contained in:
Tamo 2024-02-08 13:59:30 +01:00 committed by Louis Dureuil
parent 35aa9d5904
commit 2c88131bb1
No known key found for this signature in database
3 changed files with 8 additions and 8 deletions

View file

@ -36,7 +36,7 @@ pub fn configure(cfg: &mut web::ServiceConfig) {
#[deserr(rename_all = lowercase)]
pub enum LogMode {
#[default]
Fmt,
Human,
Profile,
}
@ -160,7 +160,7 @@ fn make_layer<
) -> (Box<dyn Layer<S> + Send + Sync>, PinnedByteStream) {
let guard = HandleGuard { logs: logs.into_inner() };
match opt.mode {
LogMode::Fmt => {
LogMode::Human => {
let (sender, receiver) = tokio::sync::mpsc::unbounded_channel();
let fmt_layer = tracing_subscriber::fmt::layer()