Skip to content

Commit

Permalink
cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
philipperolet committed Dec 22, 2024
1 parent 8c71391 commit 2a9f4c3
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions core/src/search_stores/search_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,7 @@ impl SearchStore for ElasticsearchSearchStore {
}
false => {
let error = response.json::<serde_json::Value>().await?;
Err(anyhow::anyhow!(
"Failed to search nodes: {}",
serde_json::to_string_pretty(&error)?
))
Err(anyhow::anyhow!("Failed to search nodes: {}", error))
}
}
}
Expand Down Expand Up @@ -170,7 +167,7 @@ impl SearchStore for ElasticsearchSearchStore {
false => {
let error = response.json::<serde_json::Value>().await?;
error!(
error = serde_json::to_string_pretty(&error)?,
error = %error,
duration = utils::now() - now,
globally_unique_id = node.unique_id(),
"[ElasticsearchSearchStore] Failed to index {}",
Expand All @@ -191,7 +188,7 @@ impl SearchStore for ElasticsearchSearchStore {
if !response.status_code().is_success() {
let error = response.json::<serde_json::Value>().await?;
error!(
error = serde_json::to_string_pretty(&error)?,
error = %error,
globally_unique_id = node.unique_id(),
"[ElasticsearchSearchStore] Failed to delete {}",
node.node_type.to_string()
Expand All @@ -215,7 +212,7 @@ impl SearchStore for ElasticsearchSearchStore {
if !response.status_code().is_success() {
let error = response.json::<serde_json::Value>().await?;
error!(
error = serde_json::to_string_pretty(&error)?,
error = %error,
data_source_id = data_source_id,
"[ElasticsearchSearchStore] Failed to delete data source nodes"
);
Expand Down

0 comments on commit 2a9f4c3

Please sign in to comment.