diff options
| author | Gavin Andresen <[email protected]> | 2012-08-20 11:33:20 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2012-08-20 11:33:20 -0400 |
| commit | 4d51be1cf36fee33df57c9c4500b221d355cf636 (patch) | |
| tree | ff71467efbeeebb96fbd502bdc3b364ff95ae568 /src/util.cpp | |
| parent | Merge pull request #1641 from jgarzik/mempool (diff) | |
| download | discoin-4d51be1cf36fee33df57c9c4500b221d355cf636.tar.xz discoin-4d51be1cf36fee33df57c9c4500b221d355cf636.zip | |
Suppress output when running unit tests.
This does two things:
1) Now does not output to debug.log if -printtodebugger flag is passed
2) Unit tests set -printtodebugger so only test results are output to stdout
Note that -printtodebugger only actually prints to the debugger on Windows.
Diffstat (limited to 'src/util.cpp')
| -rw-r--r-- | src/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index c9654989a..69cc5f342 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -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; |