Suppress output when running unit tests.
@ -13,7 +13,7 @@ extern void noui_connect();
struct TestingSetup {
TestingSetup() {
fPrintToConsole = true; // don't want to write to debug.log file
fPrintToDebugger = true; // don't want to write to debug.log file
noui_connect();
bitdb.MakeMock();
LoadBlockIndex(true);
@ -204,7 +204,7 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
ret = vprintf(pszFormat, arg_ptr);
va_end(arg_ptr);
}
else
else if (!fPrintToDebugger)
{
// print to debug.log
static FILE* fileout = NULL;