mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-04 04:12:55 +00:00
chore: add debug log on receiving logs (#7211)
* chore: add debug log on receiving logs Signed-off-by: shuiyisong <xixing.sys@gmail.com> * chore: add debug log on receiving logs Signed-off-by: shuiyisong <xixing.sys@gmail.com> --------- Signed-off-by: shuiyisong <xixing.sys@gmail.com>
This commit is contained in:
@@ -31,7 +31,7 @@ use axum_extra::TypedHeader;
|
||||
use common_catalog::consts::default_engine;
|
||||
use common_error::ext::{BoxedError, ErrorExt};
|
||||
use common_query::{Output, OutputData};
|
||||
use common_telemetry::{error, warn};
|
||||
use common_telemetry::{debug, error, warn};
|
||||
use headers::ContentType;
|
||||
use lazy_static::lazy_static;
|
||||
use mime_guess::mime;
|
||||
@@ -738,6 +738,11 @@ pub async fn log_ingester(
|
||||
|
||||
let value = extract_pipeline_value_by_content_type(content_type, payload, ignore_errors)?;
|
||||
|
||||
debug!(
|
||||
"receiving logs: {:?}",
|
||||
serde_json::to_string(&value).unwrap()
|
||||
);
|
||||
|
||||
query_ctx.set_channel(Channel::Log);
|
||||
let query_ctx = Arc::new(query_ctx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user