Skip to content

Commit 9bebf88

Browse files
committed
feat: use error instead of warn
1 parent afbee80 commit 9bebf88

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/apollo-mcp-server/src/server/states/running.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use rmcp::{
1313
use serde_json::Value;
1414
use tokio::sync::{Mutex, RwLock};
1515
use tokio_util::sync::CancellationToken;
16-
use tracing::{debug, error, warn};
16+
use tracing::{debug, error};
1717

1818
use crate::{
1919
custom_scalar_map::CustomScalarMap,
@@ -68,7 +68,7 @@ impl Running {
6868
) {
6969
Ok(operation) => operation,
7070
Err(error) => {
71-
warn!("Invalid operation: {}", error);
71+
error!("Invalid operation: {}", error);
7272
None
7373
}
7474
}
@@ -111,7 +111,7 @@ impl Running {
111111
) {
112112
Ok(operation) => operation,
113113
Err(error) => {
114-
warn!("Invalid operation: {}", error);
114+
error!("Invalid operation: {}", error);
115115
None
116116
}
117117
}

crates/apollo-mcp-server/src/server/states/starting.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use rmcp::{
1010
};
1111
use tokio::sync::{Mutex, RwLock};
1212
use tokio_util::sync::CancellationToken;
13-
use tracing::{debug, error, info, warn};
13+
use tracing::{debug, error, info};
1414

1515
use crate::{
1616
errors::ServerError,
@@ -45,7 +45,7 @@ impl Starting {
4545
) {
4646
Ok(operation) => operation,
4747
Err(error) => {
48-
warn!("Invalid operation: {}", error);
48+
error!("Invalid operation: {}", error);
4949
None
5050
}
5151
}

0 commit comments

Comments
 (0)