From 60647c86b8ddc7ac77f40b0bcb6ac85bd40c6245 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 5 Dec 2018 14:36:58 +0000 Subject: [PATCH] Log blacklist hits --- DAPNETGateway.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/DAPNETGateway.cpp b/DAPNETGateway.cpp index 511010d..12e3ab2 100644 --- a/DAPNETGateway.cpp +++ b/DAPNETGateway.cpp @@ -323,8 +323,11 @@ int CDAPNETGateway::run() found = std::find(whiteList.begin(), whiteList.end(), message->m_ric) != whiteList.end(); // If we have a black list of RICs, use it. - if (!blackList.empty()) + if (!blackList.empty()) { blackListRIC = std::find(blackList.begin(), blackList.end(), message->m_ric) != blackList.end(); + LogDebug("Blacklist match: Not queueing message to %07u, type %u, message: \"%.*s\"", message->m_ric, message->m_type, message->m_length, messageBody.c_str()); + + } std::string messageBody(reinterpret_cast(message->m_message));