- also small logging text changes
better std::exception logging for CAddrDb #3602
pull Diapolo wants to merge 1 commits into bitcoin:master from Diapolo:addrdb changing 1 files +10 −9-
Diapolo commented at 9:53 AM on January 30, 2014: none
-
sipa commented at 11:23 PM on April 21, 2014: member
ACK
-
in src/net.cpp:None in 310b513e21 outdated
1967 | try { 1968 | fileout << ssPeers; 1969 | } 1970 | catch (std::exception &e) { 1971 | - return error("CAddrman::Write() : I/O error"); 1972 | + return error("%s : Serialize or I/O error - %s", __PRETTY_FUNCTION__, e.what());
laanwj commented at 10:22 AM on April 22, 2014:Please use
__func__instead, it is standard (as of C++11) and has been in all c++ compilers for a while.__PRETTY_FUNCTION__is g++ only.
Diapolo commented at 12:41 PM on April 30, 2014:Done!
laanwj added this to the milestone 0.9.2 on Apr 23, 2014laanwj commented at 1:56 PM on April 30, 2014: memberACK
in src/net.cpp:None in 9889f50bb8 outdated
1971 | fileout.fclose(); 1972 | 1973 | // replace existing peers.dat, if any, with new peers.dat.XXXX 1974 | if (!RenameOver(pathTmp, pathAddr)) 1975 | - return error("CAddrman::Write() : Rename-into-place failed"); 1976 | + return error("CAddrDB::Write : Rename-into-place failed");
laanwj commented at 1:59 PM on April 30, 2014:BTW: Any specific reason for using
__func__and%sin some places but keeping the hardcoded function name in others (like here)? It looks a bit inconsistent.
Diapolo commented at 2:03 PM on April 30, 2014:No, It's just the fact that
catch (std::exception &e)mostly uses func etc. and I left it that way,
sipa commented at 2:04 PM on April 30, 2014:I'd suggest changing it everywhere you can.
BitcoinPullTester commented at 3:00 PM on April 30, 2014: noneAutomatic sanity-testing: FAILED BUILD/TEST, see http://jenkins.bluematt.me/pull-tester/9889f50bb885216190ebb3dad9d47ca038a3bc9e for binaries and test log.
This could happen for one of several reasons:
- It chanages paths in makefile.linux-mingw or otherwise changes build scripts in a way that made them incompatible with the automated testing scripts (please tweak those patches in qa/pull-tester)
- It adds/modifies tests which test network rules (thanks for doing that), which conflicts with a patch applied at test time
- It does not build on either Linux i386 or Win32 (via MinGW cross compile)
- The test suite fails on either Linux i386 or Win32
- The block test-cases failed (lookup the first bNN identifier which failed in https://github.com/TheBlueMatt/test-scripts/blob/master/FullBlockTestGenerator.java)
If you believe this to be in error, please ping BlueMatt on freenode or TheBlueMatt here.
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.
2fdd4c7933better std::exception logging for CAddrDb
- also small logging text changes
sipa commented at 1:14 PM on May 2, 2014: memberACK
laanwj merged this on May 2, 2014laanwj closed this on May 2, 2014laanwj referenced this in commit 9eb1e1e8ce on May 2, 2014Diapolo deleted the branch on May 2, 2014DrahtBot locked this on Sep 8, 2021Contributors
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-21 18:16 UTC
More mirrored repositories can be found on mirror.b10c.me