netbase: remove unnecessary log message #29649

pull pinheadmz wants to merge 1 commits into bitcoin:master from pinheadmz:netbase-log changing 1 files +0 −1
  1. pinheadmz commented at 6:11 pm on March 13, 2024: member
    This is a follow-up to #27375 that removes a spammy non-debug-level log message we don’t need. See #27375 (comment)
  2. netbase: remove unnecessary log message
    see https://github.com/bitcoin/bitcoin/pull/27375#issuecomment-1994498888
    c70e4fc9a3
  3. DrahtBot commented at 6:11 pm on March 13, 2024: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Code Coverage

    For detailed information about the code coverage, see the test coverage report.

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK fanquake

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #29641 (scripted-diff: Use LogInfo/LogDebug over LogPrintf/LogPrint by maflcko)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  4. fanquake approved
  5. fanquake commented at 9:47 am on March 14, 2024: member

    ACK c70e4fc9a311bf98a3a252a8d3e7f619763d81be - thanks. Merging this now because it’s swamping non-debug logs. i.e:

     02024-03-14T08:07:43Z UpdateTip: new best=000000000000000000015d7558b467b61cf7b788912f55d25821017c3ffd96e7 height=834636 version=0x20008000 log2_work=94.793922 tx=976340658 date='2024-03-14T08:07:24Z' progress=1.000000 cache=234.8MiB(1805989txo)
     12024-03-14T08:07:59Z Cannot connect to socket for 80.19.208.171:8333
     22024-03-14T08:08:18Z Cannot connect to socket for [2803:9810:70fa:2210:1960:30fb:63b6:3c88]:8333
     32024-03-14T08:08:46Z Cannot connect to socket for 121.204.87.66:8333
     42024-03-14T08:10:29Z New block-relay-only v1 peer connected: version: 70015, blocks=834636, peer=185
     52024-03-14T08:12:40Z Cannot connect to socket for [2601:647:4d81:5030:39c3:a544:12fa:538f]:8333
     62024-03-14T08:13:34Z Cannot connect to socket for 103.62.155.147:8333
     72024-03-14T08:13:42Z Cannot connect to socket for 172.56.70.74:8333
     82024-03-14T08:14:18Z Saw new header hash=0000000000000000000247a255f684ea87962620e0ad328a4f0bd52182280472 height=834637
     92024-03-14T08:14:18Z Saw new cmpctblock header hash=0000000000000000000247a255f684ea87962620e0ad328a4f0bd52182280472 peer=10
    102024-03-14T08:14:18Z UpdateTip: new best=0000000000000000000247a255f684ea87962620e0ad328a4f0bd52182280472 height=834637 version=0x20200000 log2_work=94.793937 tx=976342374 date='2024-03-14T08:14:15Z' progress=1.000000 cache=235.4MiB(1811916txo)
    112024-03-14T08:15:28Z Cannot connect to socket for 45.51.125.207:8333
    122024-03-14T08:15:43Z Cannot connect to socket for [2a01:e0a:11a:f8d0:6df0:e8cd:beca:a0fa]:8333
    132024-03-14T08:15:59Z Cannot connect to socket for 184.22.4.10:8333
    142024-03-14T08:16:57Z New block-relay-only v1 peer connected: version: 70016, blocks=834637, peer=186
    152024-03-14T08:18:24Z Cannot connect to socket for 44.226.85.60:8333
    162024-03-14T08:18:51Z Cannot connect to socket for [2800:cd0:8004:4300:6db5:e82c:f85e:47c6]:8333
    172024-03-14T08:20:20Z Cannot connect to socket for 184.22.103.212:8333
    182024-03-14T08:20:39Z Cannot connect to socket for [2a01:4ff:1f0:875b::1]:8333
    192024-03-14T08:23:45Z Cannot connect to socket for 35.213.121.118:8333
    202024-03-14T08:25:11Z Cannot connect to socket for 37.6.104.168:8333
    212024-03-14T08:26:13Z Cannot connect to socket for 83.32.65.174:8333
    222024-03-14T08:28:10Z Cannot connect to socket for 144.52.177.160:8333
    232024-03-14T08:28:13Z Cannot connect to socket for [2003:fa:cf01:347c:4df3:80ed:3ec7:d745]:8333
    242024-03-14T08:28:40Z Cannot connect to socket for 116.27.231.104:8333
    252024-03-14T08:29:20Z Cannot connect to socket for 149.88.101.25:8333
    262024-03-14T08:29:34Z Cannot connect to socket for 140.238.71.90:8333
    272024-03-14T08:29:41Z Cannot connect to socket for 103.170.233.207:8333
    282024-03-14T08:29:43Z Cannot connect to socket for [2601:282:8001:eab0::e4ad]:8333
    292024-03-14T08:30:01Z Cannot connect to socket for [2a01:4200:254:6fb:845e:2d90:799b:45f4]:8333
    302024-03-14T08:32:02Z Cannot connect to socket for 69.157.252.183:8333
    312024-03-14T08:32:03Z Cannot connect to socket for [2601:c7:4200:be60::ee4e]:8333
    322024-03-14T08:32:17Z Cannot connect to socket for 89.246.97.4:8333
    332024-03-14T08:32:39Z New block-relay-only v1 peer connected: version: 70016, blocks=834637, peer=187
    342024-03-14T08:35:06Z Cannot connect to socket for [2605:59c8:4a2:6300:4471:1146:204:a696]:8333
    352024-03-14T08:35:52Z Saw new header hash=000000000000000000025f742c626208ac87e0b7d15054abb4a19ca2d735a54e height=834638
    362024-03-14T08:35:52Z Saw new cmpctblock header hash=000000000000000000025f742c626208ac87e0b7d15054abb4a19ca2d735a54e peer=35
    372024-03-14T08:35:52Z UpdateTip: new best=000000000000000000025f742c626208ac87e0b7d15054abb4a19ca2d735a54e height=834638 version=0x2fe34000 log2_work=94.793952 tx=976345545 date='2024-03-14T08:35:25Z' progress=1.000000 cache=237.0MiB(1826761txo)
    382024-03-14T08:36:00Z New block-relay-only v1 peer connected: version: 70016, blocks=834638, peer=189
    392024-03-14T08:37:39Z New block-relay-only v1 peer connected: version: 70015, blocks=834638, peer=191
    402024-03-14T08:37:58Z Cannot connect to socket for 192.154.196.37:8335
    412024-03-14T08:38:10Z New block-relay-only v1 peer connected: version: 70016, blocks=834638, peer=192
    422024-03-14T08:40:39Z Cannot connect to socket for 31.151.209.231:8333
    432024-03-14T08:40:40Z Cannot connect to socket for [2409:40e6:18:fd50:95a4:40f1:af3:e190]:8333
    442024-03-14T08:41:16Z Saw new header hash=00000000000000000000a203a94241560806ecacaa2cb7b830aee1cc63f4674d height=834639
    452024-03-14T08:41:16Z Saw new cmpctblock header hash=00000000000000000000a203a94241560806ecacaa2cb7b830aee1cc63f4674d peer=35
    462024-03-14T08:41:17Z UpdateTip: new best=00000000000000000000a203a94241560806ecacaa2cb7b830aee1cc63f4674d height=834639 version=0x3fff0000 log2_work=94.793967 tx=976347392 date='2024-03-14T08:40:50Z' progress=1.000000 cache=238.0MiB(1835531txo)
    472024-03-14T08:41:23Z Cannot connect to socket for [2001:818:e2e5:5e00:f99a:7eb:8c50:bed8]:8333
    482024-03-14T08:41:42Z Cannot connect to socket for 18.141.190.50:8333
    492024-03-14T08:42:19Z Flushed fee estimates to fee_estimates.dat.
    
  6. fanquake merged this on Mar 14, 2024
  7. fanquake closed this on Mar 14, 2024

  8. Sjors commented at 11:12 am on March 18, 2024: member
    Looking at d9318a37ec09fe0b002815a7e48710e530620ae2 again it seems that it added this extra log statement. There’s a similar log entry in Proxy::Connect(), is that one fine to keep? I suppose it is, since that’s going to be far less frequent - but haven’t tried.
  9. pinheadmz commented at 5:24 pm on April 15, 2024: member

    far less frequent

    Those logs should only print when the users local proxy is unreachable, which should be less frequent and also a bit more justified. However it is also spammy in that case. I ran with -proxy=unix:/path/to/tor/socket and then after a minute, shut down the Tor daemon. Do you think this should be cleaned up as well?

     02024-04-15T17:22:45Z connect() to 127.0.0.1:7656 failed after wait: Connection refused (61)
     12024-04-15T17:22:47Z [error] Error while reading proxy response
     22024-04-15T17:22:47Z RemoveLocal(zai7kzajktbkqom3edw45zyxnn6e5z5t45d2m7dhmhilgpkz2l3frmad.onion:8333)
     32024-04-15T17:22:47Z connect() to 127.0.0.1:9050 failed after wait: Connection refused (61)
     42024-04-15T17:22:48Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2)
     52024-04-15T17:22:48Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor
     62024-04-15T17:22:48Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2)
     72024-04-15T17:22:48Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor
     82024-04-15T17:22:49Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2)
     92024-04-15T17:22:49Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor
    102024-04-15T17:22:49Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2)
    112024-04-15T17:22:49Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor
    122024-04-15T17:22:50Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2)
    132024-04-15T17:22:50Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor
    142024-04-15T17:22:50Z connect() to 127.0.0.1:9050 failed after wait: Connection refused (61)
    152024-04-15T17:22:50Z connect() to 127.0.0.1:7656 failed after wait: Connection refused (61)
    162024-04-15T17:22:51Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2)
    172024-04-15T17:22:51Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor
    182024-04-15T17:22:51Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2)
    192024-04-15T17:22:51Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor
    202024-04-15T17:22:52Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2)
    212024-04-15T17:22:52Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor
    222024-04-15T17:22:52Z connect() to 127.0.0.1:9050 failed after wait: Connection refused (61)
    232024-04-15T17:22:53Z connect() to 127.0.0.1:9050 failed after wait: Connection refused (61)
    242024-04-15T17:22:53Z connect() to 127.0.0.1:9050 failed after wait: Connection refused (61)
    252024-04-15T17:22:54Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2)
    262024-04-15T17:22:54Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor
    272024-04-15T17:22:54Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2)
    282024-04-15T17:22:54Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor
    292024-04-15T17:22:55Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2)
    302024-04-15T17:22:55Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor
    312024-04-15T17:22:55Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2)
    322024-04-15T17:22:55Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor
    332024-04-15T17:22:56Z connect() to 127.0.0.1:9050 failed after wait: Connection refused (61)
    342024-04-15T17:22:56Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2)
    352024-04-15T17:22:56Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor
    362024-04-15T17:22:56Z connect() to 127.0.0.1:7656 failed after wait: Connection refused (61)
    372024-04-15T17:22:57Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2)
    382024-04-15T17:22:57Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor
    392024-04-15T17:22:57Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2)
    402024-04-15T17:22:57Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor
    412024-04-15T17:22:58Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2)
    422024-04-15T17:22:58Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor
    432024-04-15T17:22:58Z connect() to /Users/matthewzipkin/Desktop/tor failed: No such file or directory (2)
    442024-04-15T17:22:58Z Cannot connect to socket for /Users/matthewzipkin/Desktop/tor
    
  10. pinheadmz commented at 5:29 pm on April 15, 2024: member

    Although actually the unix sockets PR didnt change this behavior much. If you start v26 with a black hole like -proxy=127.0.0.1:9999 you get similar spam:

     02024-04-15T17:28:12Z connect() to 127.0.0.1:7656 failed after wait: Connection refused (61)
     12024-04-15T17:28:12Z connect() to 127.0.0.1:9999 failed after wait: Connection refused (61)
     22024-04-15T17:28:13Z connect() to 127.0.0.1:7656 failed after wait: Connection refused (61)
     32024-04-15T17:28:13Z connect() to 127.0.0.1:9050 failed after wait: Connection refused (61)
     42024-04-15T17:28:13Z connect() to 127.0.0.1:9050 failed after wait: Connection refused (61)
     52024-04-15T17:28:14Z connect() to 127.0.0.1:9999 failed after wait: Connection refused (61)
     62024-04-15T17:28:14Z connect() to 127.0.0.1:9999 failed after wait: Connection refused (61)
     72024-04-15T17:28:15Z connect() to 127.0.0.1:7656 failed after wait: Connection refused (61)
     82024-04-15T17:28:15Z connect() to 127.0.0.1:9050 failed after wait: Connection refused (61)
     92024-04-15T17:28:15Z connect() to 127.0.0.1:9999 failed after wait: Connection refused (61)
    102024-04-15T17:28:16Z connect() to 127.0.0.1:9999 failed after wait: Connection refused (61)
    112024-04-15T17:28:16Z connect() to 127.0.0.1:9999 failed after wait: Connection refused (61)
    122024-04-15T17:28:17Z connect() to 127.0.0.1:9050 failed after wait: Connection refused (61)
    132024-04-15T17:28:17Z connect() to 127.0.0.1:9050 failed after wait: Connection refused (61)
    142024-04-15T17:28:18Z connect() to 127.0.0.1:9999 failed after wait: Connection refused (61)
    152024-04-15T17:28:18Z connect() to 127.0.0.1:9050 failed after wait: Connection refused (61)
    162024-04-15T17:28:19Z connect() to 127.0.0.1:7656 failed after wait: Connection refused (61)
    172024-04-15T17:28:19Z connect() to 127.0.0.1:9999 failed after wait: Connection refused (61)
    182024-04-15T17:28:19Z connect() to 127.0.0.1:9050 failed after wait: Connection refused (61)
    192024-04-15T17:28:20Z connect() to 127.0.0.1:9050 failed after wait: Connection refused (61)
    202024-04-15T17:28:20Z connect() to 127.0.0.1:9050 failed after wait: Connection refused (61)
    
  11. fanquake commented at 5:30 pm on April 15, 2024: member

    Do you think this should be cleaned up as well?

    Looks like that could be a good idea.


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-21 12:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me