Wladimir J. van der Laan
9a32114626
Merge #12218 : net: Move misbehaving logging to net logging category
...
d3a185a net: Move misbehaving logging to net logging category (Wladimir J. van der Laan)
Pull request description:
This moves the error messages for misbehavior (when available) into the line that reports the misbehavior, as well as moves the logging to the `net` category.
This is a continuation of #11583 and avoids serious-looking errors due to misbehaving peers. As it is impossible to correlate the `peer=X` numbers to specific incoming connections now without enabling the `net` category, it doesn't really help to see these messages by default.
To do this, Misbehaving() gains an optional `message` argument.
E.g. change:
2018-01-18 16:02:27 Misbehaving: x.x.x.x:62174 peer=164603 (80 -> 100) BAN THRESHOLD EXCEEDED
2018-01-18 16:02:27 ERROR: non-continuous headers sequence
to
2018-01-18 16:02:27 Misbehaving: x.x.x.x:62174 peer=164603 (80 -> 100) BAN THRESHOLD EXCEEDED: non-continuous headers sequence
When there is a category for "important" net messages (see #12219 ), we should move it there.
Tree-SHA512: 51c97e9a649bf5409f2fd4625fa1243a036e9c9de6037bb064244207408c2e0eb025e3af80866df673cdc006b8f35dc4078d074033f0d4c6a73bbb03949a269f
2018-02-06 12:48:59 +01:00
..
2018-01-16 11:48:33 +01:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-10 20:55:41 -10:00
2018-01-03 02:26:56 +09:00
2018-02-04 14:26:27 -05:00
2018-02-02 09:29:33 -05:00
2018-01-10 20:55:41 -10:00
2018-01-03 02:26:56 +09:00
2018-01-15 15:36:35 +01:00
2017-12-19 16:44:57 -05:00
2018-02-05 16:17:00 -05:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-29 14:26:26 +01:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2017-11-16 08:23:01 +13:00
2018-02-01 23:19:41 -08:00
2018-02-01 23:19:41 -08:00
2018-01-25 11:35:34 -05:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-28 13:21:25 +01:00
2018-01-24 13:07:05 +01:00
2018-02-01 23:19:41 -08:00
2018-01-03 02:26:56 +09:00
2018-01-24 17:35:43 +01:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-07 20:44:21 +00:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-12 11:22:54 +00:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2017-11-16 08:23:01 +13:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-11 21:40:51 +01:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-02-01 23:19:41 -08:00
2018-01-25 11:35:34 -05:00
2018-01-23 13:16:56 -05:00
2018-01-23 13:16:56 -05:00
2018-01-10 20:55:41 -10:00
2018-01-10 20:55:41 -10:00
2018-01-03 02:26:56 +09:00
2018-01-11 14:13:24 -05:00
2017-10-04 14:54:41 +02:00
2017-11-17 14:04:02 +01:00
2017-12-23 11:22:18 +01:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-13 15:57:30 -05:00
2018-01-13 15:57:30 -05:00
2018-01-24 12:18:29 +01:00
2018-01-24 12:18:29 +01:00
2018-02-03 04:08:04 -05:00
2018-02-01 14:04:49 -05:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-02-01 11:31:27 -05:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-28 13:21:25 +01:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-11 21:40:51 +01:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-28 13:21:25 +01:00
2018-01-28 13:21:25 +01:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2017-10-29 21:12:12 +08:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-09 08:59:21 -05:00
2018-01-15 15:36:35 +01:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-16 19:05:46 +13:00
2018-01-16 19:05:46 +13:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-28 13:21:25 +01:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00
2018-01-03 02:26:56 +09:00