Skip to content

Commit

Permalink
feat: print error in datanode (apache#613)
Browse files Browse the repository at this point in the history
* print error in datanode.

* address CR.
  • Loading branch information
Rachelint authored Feb 6, 2023
1 parent d81a5ff commit ed2ba6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/grpc/meta_event_service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use ceresdbproto::meta_event::{
use cluster::ClusterRef;
use common_types::schema::SchemaEncoder;
use common_util::{runtime::Runtime, time::InstantExt};
use log::info;
use log::{error, info};
use paste::paste;
use query_engine::executor::Executor as QueryExecutor;
use snafu::{OptionExt, ResultExt};
Expand Down Expand Up @@ -86,6 +86,7 @@ macro_rules! handle_request {
resp.header = Some(error::build_ok_header());
}
Ok(Err(e)) | Err(e) => {
error!("Fail to process request from meta, err:{}", e);
resp.header = Some(error::build_err_header(e));
}
};
Expand Down

0 comments on commit ed2ba6a

Please sign in to comment.