diff --git a/src/main.cpp b/src/main.cpp index 627a99f90..b8e64dc27 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2405,7 +2405,9 @@ bool IsInitialBlockDownload() LogPrintf("Leaving InitialBlockDownload (latching to false)\n"); latchToFalse.store(true, std::memory_order_relaxed); } else { - fprintf(stderr,"%s: state.%d ht.%d vs %d, t.%u\n",__func__, state,(int32_t)chainActive.Height(),(uint32_t)ptr->GetHeight(),(int32_t)ptr->GetBlockTime()); + if (fDebug) { + fprintf(stderr,"%s: state.%d ht.%d vs %d, t.%u\n",__func__, state,(int32_t)chainActive.Height(),(uint32_t)ptr->GetHeight(),(int32_t)ptr->GetBlockTime()); + } } return state; }