Commit d3687d7
authored
Improve logs during reconnection (#835)
Include commitments MDC in `Offline` and `Syncing`: this helps figure
out reconnection issues where the splice state doesn't match.
We also include more logs in a few related places.
We aren't consistent with regards to updating the `_channels` map and
calling `processActions`: sometimes we do it first, sometimes second.
It's really hard to reason about this and figure out whether this may
have side effects or not, but it seems more consistent to update the
channel state first, then process its follow-up actions.1 parent 0b46790 commit d3687d7
File tree
5 files changed
+28
-21
lines changed- modules/core/src/commonMain/kotlin/fr/acinq/lightning
- channel/states
- io
- logging
5 files changed
+28
-21
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| 293 | + | |
| 294 | + | |
293 | 295 | | |
294 | 296 | | |
295 | 297 | | |
| |||
397 | 399 | | |
398 | 400 | | |
399 | 401 | | |
| 402 | + | |
| 403 | + | |
400 | 404 | | |
401 | 405 | | |
402 | 406 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
880 | 880 | | |
881 | 881 | | |
882 | 882 | | |
883 | | - | |
| 883 | + | |
884 | 884 | | |
885 | | - | |
| 885 | + | |
886 | 886 | | |
887 | 887 | | |
888 | 888 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
302 | 301 | | |
303 | 302 | | |
304 | 303 | | |
305 | | - | |
306 | 304 | | |
307 | 305 | | |
308 | 306 | | |
| |||
339 | 337 | | |
340 | 338 | | |
341 | 339 | | |
342 | | - | |
343 | 340 | | |
| 341 | + | |
344 | 342 | | |
345 | 343 | | |
346 | 344 | | |
| |||
940 | 938 | | |
941 | 939 | | |
942 | 940 | | |
943 | | - | |
| 941 | + | |
944 | 942 | | |
945 | 943 | | |
946 | 944 | | |
| |||
1322 | 1320 | | |
1323 | 1321 | | |
1324 | 1322 | | |
1325 | | - | |
1326 | 1323 | | |
| 1324 | + | |
1327 | 1325 | | |
1328 | 1326 | | |
1329 | 1327 | | |
| |||
1334 | 1332 | | |
1335 | 1333 | | |
1336 | 1334 | | |
1337 | | - | |
1338 | 1335 | | |
| 1336 | + | |
1339 | 1337 | | |
1340 | 1338 | | |
1341 | 1339 | | |
| |||
1400 | 1398 | | |
1401 | 1399 | | |
1402 | 1400 | | |
1403 | | - | |
1404 | 1401 | | |
| 1402 | + | |
1405 | 1403 | | |
1406 | 1404 | | |
1407 | 1405 | | |
| |||
1709 | 1707 | | |
1710 | 1708 | | |
1711 | 1709 | | |
1712 | | - | |
1713 | 1710 | | |
| 1711 | + | |
1714 | 1712 | | |
1715 | 1713 | | |
1716 | 1714 | | |
1717 | 1715 | | |
1718 | | - | |
1719 | 1716 | | |
| 1717 | + | |
1720 | 1718 | | |
1721 | 1719 | | |
1722 | 1720 | | |
| |||
Lines changed: 12 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
| |||
82 | 80 | | |
83 | 81 | | |
84 | 82 | | |
| 83 | + | |
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
92 | | - | |
| 91 | + | |
93 | 92 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
107 | | - | |
| 109 | + | |
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
| |||
0 commit comments