File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1367,9 +1367,9 @@ async def log(
1367
1367
logger = logger_name ,
1368
1368
related_request_id = self .request_id ,
1369
1369
)
1370
- except Exception :
1370
+ except Exception as e :
1371
1371
# Session might be closed (e.g., client disconnected)
1372
- logger .warning (f"Failed to send log message to client (session closed?): { message } " )
1372
+ logger .warning (f"Failed to send log message to client (session closed?): { e } " )
1373
1373
pass
1374
1374
1375
1375
@property
Original file line number Diff line number Diff line change @@ -95,7 +95,6 @@ async def main():
95
95
from mcp .types import Operation , RequestId
96
96
97
97
logger = logging .getLogger (__name__ )
98
- logger .setLevel (logging .DEBUG )
99
98
100
99
LifespanResultT = TypeVar ("LifespanResultT" , default = Any )
101
100
RequestT = TypeVar ("RequestT" , default = Any )
You can’t perform that action at this time.
0 commit comments