mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
Structures a bunch of logs
This commit is contained in:
parent
d71b77f18b
commit
08af0e690c
14 changed files with 77 additions and 67 deletions
|
@ -4,7 +4,7 @@ use index_scheduler::IndexScheduler;
|
|||
use meilisearch_types::error::ResponseError;
|
||||
use meilisearch_types::tasks::KindWithContent;
|
||||
use serde_json::json;
|
||||
use tracing::debug;
|
||||
use tracing::debug_span;
|
||||
|
||||
use crate::analytics::Analytics;
|
||||
use crate::extractors::authentication::policies::*;
|
||||
|
@ -27,6 +27,6 @@ pub async fn create_snapshot(
|
|||
let task: SummarizedTaskView =
|
||||
tokio::task::spawn_blocking(move || index_scheduler.register(task)).await??.into();
|
||||
|
||||
debug!("returns: {:?}", task);
|
||||
debug_span!("Create snapshot", returns = ?task);
|
||||
Ok(HttpResponse::Accepted().json(task))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue