From dc3ea69f4913f731f27b97ac1185f1943a7e8d9a Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Sun, 29 Nov 2020 20:28:14 +0300 Subject: [PATCH] Fix `Node::getLogCategories()` to work with Dash-specific log categories (#3837) We use top 32 bits of uint64_t for Dash-specific log categories, see logging.h --- src/interfaces/node.cpp | 2 +- src/interfaces/node.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interfaces/node.cpp b/src/interfaces/node.cpp index 919dbd646b..f4541c25af 100644 --- a/src/interfaces/node.cpp +++ b/src/interfaces/node.cpp @@ -172,7 +172,7 @@ class NodeImpl : public Node void initLogging() override { InitLogging(); } void initParameterInteraction() override { InitParameterInteraction(); } std::string getWarnings(const std::string& type) override { return GetWarnings(type); } - uint32_t getLogCategories() override { return ::logCategories; } + uint64_t getLogCategories() override { return ::logCategories; } bool baseInitialize() override { return AppInitBasicSetup() && AppInitParameterInteraction() && AppInitSanityChecks() && diff --git a/src/interfaces/node.h b/src/interfaces/node.h index 22e690648b..5a78866f98 100644 --- a/src/interfaces/node.h +++ b/src/interfaces/node.h @@ -123,7 +123,7 @@ public: virtual std::string getWarnings(const std::string& type) = 0; // Get log flags. - virtual uint32_t getLogCategories() = 0; + virtual uint64_t getLogCategories() = 0; //! Initialize app dependencies. virtual bool baseInitialize() = 0;