Commit e3d85c3
committed
Logging overhaul
* Add more logging to the pool when acquiring and releasing connections.
* Improved log format:
* All debug messages should not start with `[#hhhh] x:` where `hhhh` is the
hex representation of the local port number of the connection or 0000 if
there is none. `x` is one of `C` if it's the driver writing/opening/closing
onto the socket, `S` if it's the driver reading/receiving an error from
the socket and `_` if it's not communication between the server and the
driver.
* Reduced logging noise in routing table.
* API docs: explain how to manually log the async task id.
* Logging helpers `neo4j.debug`:
* Add config options to decide if thread id and/or task id should be logged.
* Their docs make clear that the logging format is not following semver.
* Changed logging format to accommodate the new config options.1 parent e26111c commit e3d85c3
File tree
20 files changed
+322
-108
lines changed- docs/source
- neo4j
- _async_compat/network
- _async
- io
- work
- _sync
- io
- work
20 files changed
+322
-108
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1462 | 1462 | | |
1463 | 1463 | | |
1464 | 1464 | | |
| 1465 | + | |
| 1466 | + | |
1465 | 1467 | | |
1466 | 1468 | | |
1467 | 1469 | | |
| |||
1472 | 1474 | | |
1473 | 1475 | | |
1474 | 1476 | | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
1475 | 1482 | | |
1476 | 1483 | | |
1477 | 1484 | | |
| |||
1484 | 1491 | | |
1485 | 1492 | | |
1486 | 1493 | | |
1487 | | - | |
1488 | | - | |
| 1494 | + | |
| 1495 | + | |
1489 | 1496 | | |
1490 | 1497 | | |
1491 | 1498 | | |
| |||
1502 | 1509 | | |
1503 | 1510 | | |
1504 | 1511 | | |
1505 | | - | |
| 1512 | + | |
1506 | 1513 | | |
1507 | 1514 | | |
1508 | 1515 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
163 | 167 | | |
164 | 168 | | |
165 | 169 | | |
| |||
689 | 693 | | |
690 | 694 | | |
691 | 695 | | |
692 | | - | |
| 696 | + | |
| 697 | + | |
693 | 698 | | |
694 | 699 | | |
695 | 700 | | |
| |||
751 | 756 | | |
752 | 757 | | |
753 | 758 | | |
754 | | - | |
| 759 | + | |
755 | 760 | | |
756 | 761 | | |
757 | 762 | | |
| |||
770 | 775 | | |
771 | 776 | | |
772 | 777 | | |
773 | | - | |
| 778 | + | |
774 | 779 | | |
775 | 780 | | |
776 | 781 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
| 429 | + | |
| 430 | + | |
430 | 431 | | |
431 | 432 | | |
432 | 433 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| |||
0 commit comments