mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
rename the fmt mode to human
This commit is contained in:
parent
35aa9d5904
commit
2c88131bb1
3 changed files with 8 additions and 8 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue