Repository navigation
Commit bcf7baa
Flatten log stream error handling (#7340)
The client write errors in advanced_logs_handler() were handled in a try
nested inside the log reading loop, with each handler ending the loop.
Handle them in the outer try instead to remove a level of nesting. The
reader side only raises exceptions that none of the moved handlers catch.
ClientConnectionResetError subclasses ConnectionResetError, so its handler
has to stay ahead of the one for systemd-journal-gatewayd errors.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 8f21f7a commit bcf7baa
1 file changed
Lines changed: 21 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
416 | 408 | | |
417 | 409 | | |
418 | 410 | | |
| |||
427 | 419 | | |
428 | 420 | | |
429 | 421 | | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
430 | 428 | | |
431 | 429 | | |
432 | 430 | | |
| |||
0 commit comments