Commit c8b8351
MarcoFalke
Merge #20724: Cleanup of -debug=net log messages
48c8a9b net_processing: log txrelay flag from version message (Anthony Towns)
98fab37 net: use peer=N instead of from=N in debug log (Anthony Towns)
1230210 net_processing: additional debug logging for ignored messages (Anthony Towns)
f7edea3 net: make debug logging conditional on -debug=net (Anthony Towns)
a410ae8 net, net_processing: log disconnect reasons with -debug=net (Anthony Towns)
Pull request description:
A few changes to -debug=net logging:
* always log when disconnecting a peer
* only log various connection errors when -debug=net is enabled, since errors from random untrusted peers is completely expected
* log when ignoring a message due to violating protocol (primarily to make it easier to debug other implementations)
* use "peer=123" rather than "from 123" to make grepping logs a bit easier
* log the value of the bip-37 `fRelay` field in version messages both when sending and receiving a version message
ACKs for top commit:
jnewbery:
ACK 48c8a9b
MarcoFalke:
re-ACK 48c8a9b only change is rebase 🚓
practicalswift:
re-ACK 48c8a9b
Tree-SHA512: 6ac530d883dffc4fd7fe20b1dc5ebb5394374c9b499aa7a253eb4a3a660d8901edd72e5ad21ce4a2bf71df25e8f142087755f9756f3497f564ef453a7e9246c1File tree
3 files changed
+38
-17
lines changed- src
- test/functional
3 files changed
+38
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
815 | 815 | | |
816 | 816 | | |
817 | 817 | | |
818 | | - | |
| 818 | + | |
819 | 819 | | |
820 | 820 | | |
821 | 821 | | |
| |||
1004 | 1004 | | |
1005 | 1005 | | |
1006 | 1006 | | |
| 1007 | + | |
1007 | 1008 | | |
1008 | 1009 | | |
1009 | 1010 | | |
| |||
1052 | 1053 | | |
1053 | 1054 | | |
1054 | 1055 | | |
1055 | | - | |
| 1056 | + | |
1056 | 1057 | | |
1057 | 1058 | | |
1058 | 1059 | | |
| |||
1230 | 1231 | | |
1231 | 1232 | | |
1232 | 1233 | | |
1233 | | - | |
| 1234 | + | |
1234 | 1235 | | |
1235 | 1236 | | |
1236 | 1237 | | |
1237 | 1238 | | |
1238 | | - | |
| 1239 | + | |
1239 | 1240 | | |
1240 | 1241 | | |
1241 | 1242 | | |
1242 | 1243 | | |
1243 | | - | |
| 1244 | + | |
1244 | 1245 | | |
1245 | 1246 | | |
1246 | 1247 | | |
1247 | 1248 | | |
1248 | 1249 | | |
1249 | 1250 | | |
1250 | 1251 | | |
1251 | | - | |
| 1252 | + | |
1252 | 1253 | | |
1253 | 1254 | | |
1254 | 1255 | | |
1255 | 1256 | | |
1256 | | - | |
| 1257 | + | |
1257 | 1258 | | |
1258 | 1259 | | |
1259 | 1260 | | |
| |||
2693 | 2694 | | |
2694 | 2695 | | |
2695 | 2696 | | |
| 2697 | + | |
2696 | 2698 | | |
2697 | 2699 | | |
2698 | 2700 | | |
| |||
2705 | 2707 | | |
2706 | 2708 | | |
2707 | 2709 | | |
| 2710 | + | |
2708 | 2711 | | |
2709 | 2712 | | |
2710 | 2713 | | |
| |||
2722 | 2725 | | |
2723 | 2726 | | |
2724 | 2727 | | |
| 2728 | + | |
2725 | 2729 | | |
2726 | 2730 | | |
2727 | 2731 | | |
| |||
| 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 | 889 | | |
889 | | - | |
| 890 | + | |
890 | 891 | | |
891 | 892 | | |
892 | 893 | | |
| |||
2642 | 2643 | | |
2643 | 2644 | | |
2644 | 2645 | | |
2645 | | - | |
| 2646 | + | |
2646 | 2647 | | |
2647 | | - | |
| 2648 | + | |
2648 | 2649 | | |
2649 | 2650 | | |
2650 | 2651 | | |
| |||
2659 | 2660 | | |
2660 | 2661 | | |
2661 | 2662 | | |
| 2663 | + | |
2662 | 2664 | | |
2663 | 2665 | | |
2664 | 2666 | | |
| |||
2674 | 2676 | | |
2675 | 2677 | | |
2676 | 2678 | | |
2677 | | - | |
| 2679 | + | |
| 2680 | + | |
| 2681 | + | |
| 2682 | + | |
2678 | 2683 | | |
2679 | 2684 | | |
2680 | 2685 | | |
| |||
2746 | 2751 | | |
2747 | 2752 | | |
2748 | 2753 | | |
| 2754 | + | |
2749 | 2755 | | |
2750 | 2756 | | |
2751 | 2757 | | |
| |||
2754 | 2760 | | |
2755 | 2761 | | |
2756 | 2762 | | |
| 2763 | + | |
| 2764 | + | |
2757 | 2765 | | |
| 2766 | + | |
| 2767 | + | |
2758 | 2768 | | |
2759 | 2769 | | |
2760 | 2770 | | |
| |||
2763 | 2773 | | |
2764 | 2774 | | |
2765 | 2775 | | |
| 2776 | + | |
2766 | 2777 | | |
2767 | 2778 | | |
2768 | 2779 | | |
| |||
2789 | 2800 | | |
2790 | 2801 | | |
2791 | 2802 | | |
| 2803 | + | |
2792 | 2804 | | |
2793 | 2805 | | |
2794 | 2806 | | |
| |||
2832 | 2844 | | |
2833 | 2845 | | |
2834 | 2846 | | |
2835 | | - | |
| 2847 | + | |
| 2848 | + | |
2836 | 2849 | | |
| 2850 | + | |
2837 | 2851 | | |
2838 | 2852 | | |
2839 | 2853 | | |
| |||
3840 | 3854 | | |
3841 | 3855 | | |
3842 | 3856 | | |
| 3857 | + | |
3843 | 3858 | | |
3844 | 3859 | | |
3845 | 3860 | | |
| |||
3862 | 3877 | | |
3863 | 3878 | | |
3864 | 3879 | | |
| 3880 | + | |
3865 | 3881 | | |
3866 | 3882 | | |
3867 | 3883 | | |
| |||
3889 | 3905 | | |
3890 | 3906 | | |
3891 | 3907 | | |
| 3908 | + | |
3892 | 3909 | | |
3893 | 3910 | | |
3894 | 3911 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
0 commit comments