[Trivial] [logging] Rm extraneous cleansubver in serveral debug messages #6646

pull gmaxwell wants to merge 1 commits into bitcoin:master from gmaxwell:lesssubver changing 1 files +5 −6
  1. gmaxwell commented at 8:28 AM on September 7, 2015: contributor

    We log the cleanSubVer as part of connect. It is not uniquely more informative than any of the other data we have about a peer, often less. It's also often long now as well. There is no need to output it as part of mempoolrej, AcceptToMemoryPool, or pong entries. Leaving it out makes our log entries more uniform and consistent.

  2. gmaxwell added the label Trivial on Sep 7, 2015
  3. gmaxwell added the label Block storage on Sep 7, 2015
  4. gmaxwell removed the label Block storage on Sep 7, 2015
  5. gmaxwell added the label Docs and Output on Sep 7, 2015
  6. dcousens commented at 1:24 PM on September 7, 2015: contributor

    concept/utACK

  7. paveljanik commented at 1:35 PM on September 7, 2015: contributor

    ACK

  8. sipa commented at 3:38 PM on September 7, 2015: member

    ACK

  9. petertodd commented at 5:08 PM on September 7, 2015: contributor

    utACK

  10. gmaxwell commented at 8:39 PM on September 7, 2015: contributor

    @paveljanik OK, I was trying to avoid gratuitously breaking parser, but fair enough. Changed.

  11. fanquake commented at 9:57 PM on September 7, 2015: member

    utACK

  12. btcdrak commented at 11:25 PM on September 7, 2015: contributor

    utACK

  13. [Trivial] [logging] Rm extraneous cleansubver in serveral debug messages.
    We log the cleanSubVer as part of connect.  It is not uniquely more informative
     than any of the other data we have about a peer, often less.  It's also often
     long now as well.  There is no need to output it as part of mempoolrej,
     AcceptToMemoryPool, or pong entries.  Leaving it out makes our log entries
     more uniform and consistent.
    6ecaec395c
  14. in src/main.cpp:None in 9ee9616a89 outdated
    4343 | @@ -4344,8 +4344,8 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
    4344 |          int nDoS = 0;
    4345 |          if (state.IsInvalid(nDoS))
    4346 |          {
    4347 | -            LogPrint("mempoolrej", "%s from peer=%d %s was not accepted into the memory pool: %s\n", tx.GetHash().ToString(),
    4348 | -                pfrom->id, pfrom->cleanSubVer,
    4349 | +            LogPrint("mempoolrej", "%s from peer=%d was not accepted into the memory pool: %s\n", tx.GetHash().ToString(),
    


    laanwj commented at 2:17 PM on September 8, 2015:

    Now that we're changing this message: can we shorten it even further? I introduced this, but as it appears quite often (when mempoolrej enabled), I'd prefer a shorter formulation. Maybe "was not accepted" is enough?


    petertodd commented at 2:45 PM on September 8, 2015:

    ACK

  15. gmaxwell commented at 11:12 PM on September 8, 2015: contributor

    Okay. Message shorter as requested by @laanwj

  16. jgarzik commented at 11:35 PM on September 15, 2015: contributor

    ut ACK

    travis death in rpc tests is unrelated?

  17. MarcoFalke commented at 8:54 AM on September 16, 2015: member

    Yes, unrelated. It's #6655.

  18. paveljanik commented at 5:25 PM on September 19, 2015: contributor

    Ready to merge.

  19. laanwj merged this on Sep 23, 2015
  20. laanwj closed this on Sep 23, 2015

  21. laanwj referenced this in commit 6264e5b378 on Sep 23, 2015
  22. MarcoFalke locked this on Sep 8, 2021

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: 2026-04-18 21:15 UTC

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