Log blacklist hits

This commit is contained in:
Simon 2018-12-05 14:36:58 +00:00
parent bb3d40d26f
commit 60647c86b8

View file

@ -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<char*>(message->m_message));