Commit a9a52b6
committed
fix(lowlevel): log Disconnect/Cancel exceptions at DEBUG, not ERROR
The low-level server's generic case-Exception handler logs any exception
from the session stream at ERROR level. When the streamable HTTP transport
sends ClientDisconnect through the writer (to unblock the inner session
task), it was caught here and logged as ERROR — producing the same noise
we're trying to eliminate.
Add a guard clause matching Disconnect/Cancel exception types (by name,
to keep the low-level server transport-agnostic) and log at DEBUG instead.
Also skip sending 'Internal Server Error' to the client (there is none).1 parent 55a042a commit a9a52b6
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
703 | 703 | | |
704 | 704 | | |
705 | 705 | | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
706 | 709 | | |
707 | 710 | | |
708 | 711 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
657 | | - | |
658 | | - | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
659 | 660 | | |
660 | 661 | | |
661 | 662 | | |
| |||
0 commit comments