feat(middleware): info => debug

This commit is contained in:
2025-12-06 13:36:17 +08:00
parent 34df8c9986
commit 9b7c3958ec

View File

@@ -9,7 +9,7 @@ use axum::{
use bytes::Bytes;
use http_body_util::BodyExt;
use serde_json::Value;
use tracing::{debug, info, warn};
use tracing::{debug, warn};
use crate::{AppContext, db};
@@ -178,7 +178,7 @@ async fn modify_response(
) -> anyhow::Result<()> {
// Check for generic method interception (e.g., replace response from DB)
if let Some(intercepted) = intercept_response(method, original_decrypted, ctx).await? {
info!("Intercepting response for method: {}", method);
debug!("Intercepting response for method: {}", method);
*response_json = serde_json::from_str(&intercepted).unwrap_or_else(|e| {
warn!(
"Failed to parse intercepted response as JSON: {}. Using as string.",
@@ -222,7 +222,7 @@ async fn handle_getcommand_response(
{
warn!("Failed to persist command to database: {}", e);
}
info!("Added command to the queue: {:?}", cmd);
debug!("Added command to the queue: {:?}", cmd);
}
}