Commit c8e12dc
committed
🔍 Improve debug connection trace output
This uses String#dump to print out control characters legibly, whic
makes the CRLF line endings explicit and enables reliable copy/pasting
of logged data for tests or debugging.
This also improves how sent/rcvd data is interleaved (in my opinion).
Note that, because client-sent data is generally in the main/application
thread(s) (inside `#synchronize`), and server responses are received in
the server thread (_not_ synchronized), this did have a threading race
condition. So this updated version uses `synchronize` to log the server
responses.1 parent 36ecc26 commit c8e12dc
1 file changed
Lines changed: 14 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1102 | 1102 | | |
1103 | 1103 | | |
1104 | 1104 | | |
1105 | | - | |
| 1105 | + | |
1106 | 1106 | | |
1107 | 1107 | | |
1108 | 1108 | | |
| |||
3556 | 3556 | | |
3557 | 3557 | | |
3558 | 3558 | | |
3559 | | - | |
| 3559 | + | |
3560 | 3560 | | |
3561 | 3561 | | |
3562 | 3562 | | |
| |||
3633 | 3633 | | |
3634 | 3634 | | |
3635 | 3635 | | |
3636 | | - | |
3637 | | - | |
3638 | | - | |
| 3636 | + | |
| 3637 | + | |
| 3638 | + | |
| 3639 | + | |
| 3640 | + | |
| 3641 | + | |
| 3642 | + | |
3639 | 3643 | | |
3640 | | - | |
3641 | | - | |
3642 | | - | |
| 3644 | + | |
| 3645 | + | |
| 3646 | + | |
3643 | 3647 | | |
3644 | | - | |
| 3648 | + | |
| 3649 | + | |
3645 | 3650 | | |
3646 | 3651 | | |
3647 | 3652 | | |
| |||
0 commit comments