Include the version string we are sending to nodes in the debug output.
Include version string of version message we send in the debug log #4829
pull rebroad wants to merge 1 commits into bitcoin:master from rebroad:ShowVersionString changing 1 files +3 −4-
rebroad commented at 7:11 AM on September 3, 2014: contributor
-
sipa commented at 7:13 AM on September 3, 2014: member
Would it suffice to log this once at startup instead? It's an immutable string anyway.
-
Include version string of version message we send in the debug log 99c9399a43
- rebroad force-pushed on Sep 3, 2014
-
BitcoinPullTester commented at 8:34 AM on September 3, 2014: none
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4829_99c9399a436b2af7fb94545f7c48f15760e6c4fe/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.
-
in src/net.cpp:None in 99c9399a43
1752 | @@ -1756,6 +1753,8 @@ void StartNode(boost::thread_group& threadGroup) 1753 | 1754 | Discover(threadGroup); 1755 | 1756 | + LogPrint("net", "Our version message: %s version %d\n", FormatSubVersion(CLIENT_NAME, CLIENT_VERSION, std::vector<string>()), PROTOCOL_VERSION);
laanwj commented at 8:54 AM on September 3, 2014:Not 100% sure what you are trying to accomplish with this, but wouldn't it be better to offer this information on RPC (
getnetworkinfo)? That's easier to query than searching in the log.jgarzik commented at 12:51 PM on September 3, 2014: contributorIndeed, one-time information should usually be returned via an RPC call. No need to log same information repeatedly at all, even at startup.
rebroad commented at 6:05 PM on September 3, 2014: contributorNot sure I understand. This is logged only once in the debug.log now, as @sipa requested. Do we want it logged once, or every time it's used? It was initially every time, (as was PROTOCOL_VERSION), but then I changed it to just once.
There's much info in debug.log that isn't available via RPC, so I'm assuming you're not suggesting we move everything to RPC instead.
jgarzik commented at 6:12 PM on September 3, 2014: contributorThe protocol version is already in RPC. It makes sense to export that alongside.
Logs are awful for parsing.
laanwj commented at 7:51 AM on September 4, 2014: memberAgree with @jgarzik here. I think what you're trying to do (collect statistics by parsing the log) is misguided. The log is not an interface, RPC is. A better solution would be to have an external tool periodically collect the information through RPC. This is what I'm trying to say in https://github.com/rebroad/bitcoin/commit/a973b79e78cf4139efd8d778736cb7831ce775b6#commitcomment-7654200 too.
laanwj closed this on Sep 16, 2014MarcoFalke locked this on Sep 8, 2021
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-20 00:15 UTC
More mirrored repositories can be found on mirror.b10c.me