Skip to content

Commit

Permalink
log: log more for config worker (nacos-group#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
CherishCai authored Jul 20, 2023
1 parent 4d7b9b6 commit 34124e2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

[package]
name = "nacos-sdk"
version = "0.3.0"
version = "0.3.1-alpha"
edition = "2021"
authors = ["nacos-group", "CheirshCai <[email protected]>", "onewe <[email protected]>"]
license = "Apache-2.0"
Expand Down
18 changes: 14 additions & 4 deletions src/config/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,13 @@ impl ConfigWorker {
)
.in_current_span()
.await;
if let Ok(config_resp) = config_resp {
Self::fill_data_and_notify(&mut cache_data, config_resp).await;
match config_resp {
Ok(config_resp) => {
Self::fill_data_and_notify(&mut cache_data, config_resp).await;
}
Err(e) => {
tracing::error!("get_config_inner_async, config_resp err={e:?}");
}
}
let req = ConfigBatchListenRequest::new(true).add_config_listen_context(
ConfigListenContext::new(
Expand Down Expand Up @@ -446,8 +451,13 @@ impl ConfigWorker {
)
.in_current_span()
.await;
if let Ok(config_resp) = config_resp {
Self::fill_data_and_notify(data, config_resp).await;
match config_resp {
Ok(config_resp) => {
Self::fill_data_and_notify(data, config_resp).await;
}
Err(e) => {
tracing::error!("get_config_inner_async, config_resp err={e:?}");
}
}
}
}
Expand Down

0 comments on commit 34124e2

Please sign in to comment.