table: move CS limit change logging to cs::Policy
refs #2181
Change-Id: Ifffc72b4f8c84b9caa254ce30b57a42d83fa5b11
diff --git a/daemon/table/cs-policy.cpp b/daemon/table/cs-policy.cpp
index 3d22c1e..4e37aad 100644
--- a/daemon/table/cs-policy.cpp
+++ b/daemon/table/cs-policy.cpp
@@ -25,6 +25,9 @@
#include "cs-policy.hpp"
#include "cs.hpp"
+#include "core/logger.hpp"
+
+NFD_LOG_INIT("CsPolicy");
namespace nfd {
namespace cs {
@@ -34,13 +37,10 @@
{
}
-Policy::~Policy()
-{
-}
-
void
Policy::setLimit(size_t nMaxEntries)
{
+ NFD_LOG_INFO("setLimit " << nMaxEntries);
m_limit = nMaxEntries;
this->evictEntries();
}