Commit 3951589
committed
diag: Log adaptor message routing on both sides.
The adaptor setup phase flows silently through the server (AuthManager
only logs handling failures, not successes) and through the client
runJob loop (which logs only when a handler takes >=250ms). That
makes it hard to diagnose a stuck swap: a participant that never
receives the relayed AdaptorLocked looks identical to one where the
inbound handler is blocked inside the cgo XMR wallet.
Add four log lines, all at INFO, to distinguish those cases on the
next simnet run:
- client handleAdaptorMsg: log route + matchID on entry, and route +
matchID + dispatch elapsed time + err on exit.
- server AdaptorCoordinators.Handle: log the inbound route + matchID +
phase before c.Handle, and the resulting phase + err after.
- server dex.adaptorRouter: log each outbound relay (route, matchID,
role, user, err).
No behavior change. Test rig Core{} in TestHandleAdaptorMsg now sets
log: tLogger so handleAdaptorMsg doesn't nil-deref the logger.
Revert (or downgrade to Tracef) once the simnet swap is green.1 parent 8e7ba7f commit 3951589
4 files changed
Lines changed: 28 additions & 4 deletions
File tree
- client/core
- server
- dex
- swap
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | | - | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
497 | 506 | | |
498 | 507 | | |
499 | 508 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
1041 | | - | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
1042 | 1048 | | |
1043 | 1049 | | |
1044 | 1050 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
109 | 118 | | |
110 | 119 | | |
111 | 120 | | |
| |||
0 commit comments