logging: Add DisableLogging()

This commit is contained in:
Anthony Towns
2024-07-04 00:52:29 +10:00
parent 6bbc2dd6c5
commit 0b1960f1b2
3 changed files with 27 additions and 0 deletions

View File

@@ -20,6 +20,7 @@
#include <consensus/validation.h>
#include <core_io.h>
#include <logging.h>
#include <node/blockstorage.h>
#include <node/caches.h>
#include <node/chainstate.h>
@@ -42,6 +43,12 @@
int main(int argc, char* argv[])
{
// We do not enable logging for this app, so explicitly disable it.
// To enable logging instead, replace with:
// LogInstance().m_print_to_console = true;
// LogInstance().StartLogging();
LogInstance().DisableLogging();
// SETUP: Argument parsing and handling
if (argc != 2) {
std::cerr