Commit 0274227
fix(bridge): correct error wrapping, trace_id key, and a log message (#1095)
Three diagnostics/observability fixes (no behavior change to fund flow):
1. bridge.go: the tfchain and stellar subscription error branches checked
`data.Err != nil` but wrapped the stale outer-scope `err`, so a real
subscription failure was reported with the wrong/empty cause. Wrap
`data.Err` in both arms.
2. stellar.go: the `stellar_transaction_submitted` success log read the
trace id with the string key `ctx.Value("trace_id")`, but the value is
stored under the typed key `TraceIdKey{}`, so trace_id was always
logged as <nil>. Use `TraceIdKey{}`.
3. client.go: RetrySetWithdrawExecuted (which calls
SetBurnTransactionExecuted) logged "setting refund transaction as
executed". Corrected to "burn transaction".
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent c395377 commit 0274227
3 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
| 371 | + | |
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments