Commit d8ee7a4
committed
dbft: add ability to customize dBFT logs verbosity
Close #125.
Use a separate flag since we need to be able to customize dBFT log level
irrespectively of the node's log level. Example of setting:
```
--dbft.loglevel debug
```
`info` is used by default:
```
2025-02-18T20:27:27.351+0300 INFO received PrepareRequest {"validator": 3, "tx": 0}
2025-02-18T20:27:27.351+0300 INFO sending PrepareResponse {"height": 7, "view": 0}
2025-02-18T20:27:27.351+0300 INFO received PrepareResponse {"validator": 2}
2025-02-18T20:27:27.351+0300 INFO sending Commit {"height": 7, "view": 0}
2025-02-18T20:27:27.352+0300 INFO received PrepareResponse {"validator": 1}
2025-02-18T20:27:27.352+0300 INFO received Commit {"validator": 2}
2025-02-18T20:27:27.352+0300 INFO received Commit {"validator": 1}
2025-02-18T20:27:27.352+0300 INFO approving block {"height": 7, "hash": "0xa1f58afe5a7f7cc35f6506162c88097b759d2b101e8f8ae61da71bfba9a644b3", "tx_count": 0, "merkle": "0xe30caa43e5c2608a9940137c8ba34686767539c8becb2c6bdef678b95e0f9aea", "prev": "0x12ac0408a1d49dcded5ef43414aeda5f71fff66bc57b5f1791ab5b22b6f579e2"}
INFO [02-18|20:27:27.354] Chain reorg detected number=5 hash=e612ec..a71dd2 drop=1 dropfrom=9cb4a2..346b88 add=2 addfrom=61b7c1..6e0c78
INFO [02-18|20:27:27.356] Successfully wrote new block with state number=7 hash=61b7c1..6e0c78
```
Signed-off-by: Anna Shaleva <[email protected]>1 parent b27f46e commit d8ee7a4
File tree
5 files changed
+53
-1
lines changed- cmd
- geth
- utils
- consensus/dbft
- eth
- ethconfig
5 files changed
+53
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
590 | 595 | | |
591 | 596 | | |
592 | 597 | | |
| |||
1742 | 1747 | | |
1743 | 1748 | | |
1744 | 1749 | | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
1745 | 1753 | | |
1746 | 1754 | | |
1747 | 1755 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| 238 | + | |
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
| |||
284 | 286 | | |
285 | 287 | | |
286 | 288 | | |
287 | | - | |
| 289 | + | |
288 | 290 | | |
289 | 291 | | |
290 | 292 | | |
| 293 | + | |
291 | 294 | | |
292 | 295 | | |
293 | 296 | | |
| |||
333 | 336 | | |
334 | 337 | | |
335 | 338 | | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
336 | 356 | | |
337 | 357 | | |
338 | 358 | | |
| |||
1356 | 1376 | | |
1357 | 1377 | | |
1358 | 1378 | | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
1359 | 1393 | | |
1360 | 1394 | | |
1361 | 1395 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
303 | 307 | | |
304 | 308 | | |
305 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
168 | 173 | | |
169 | 174 | | |
170 | 175 | | |
| |||
0 commit comments