COMMON: Keep only one instance of global debug flags

This commit is contained in:
Eugene Sandulenko 2021-08-16 20:42:56 +02:00
parent 436e47292e
commit ed09f11eaa
No known key found for this signature in database
GPG Key ID: 014D387312D34F08
2 changed files with 6 additions and 5 deletions

View File

@ -32,6 +32,11 @@
int gDebugLevel = -1;
bool gDebugChannelsOnly = false;
const DebugChannelDef gDebugChannels[] = {
{ kDebugLevelEventRec, "eventrec", "Event recorder debug level" },
{ kDebugGlobalDetection, "detection", "debug messages for advancedDetector" },
DEBUG_CHANNEL_END
};
namespace Common {
DECLARE_SINGLETON(DebugManager);

View File

@ -166,11 +166,7 @@ enum GlobalDebugLevels {
kDebugLevelEventRec = 1 << 30
};
static const DebugChannelDef gDebugChannels[] = {
{kDebugLevelEventRec, "EventRec", "Event recorder debug level"},
{kDebugGlobalDetection, "Detection", "debug messages for advancedDetector"},
DEBUG_CHANNEL_END
};
extern const DebugChannelDef gDebugChannels[];
/** @} */