INFO level is suppose to be used for informational messages that are useful for ordinary user, but in several places we used it as a DEBUG output. In CS the level is reduced even more, to TRACE. Change-Id: I9058e25d95de79661099dd4624d802cc33420983
32 lines
697 B
C++
32 lines
697 B
C++
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
|
/**
|
|
* Copyright (C) 2014 Named Data Networking Project
|
|
* See COPYING for copyright and distribution information.
|
|
*/
|
|
|
|
#include "strategy-choice-entry.hpp"
|
|
#include "core/logger.hpp"
|
|
#include "fw/strategy.hpp"
|
|
|
|
NFD_LOG_INIT("StrategyChoiceEntry");
|
|
|
|
namespace nfd {
|
|
namespace strategy_choice {
|
|
|
|
Entry::Entry(const Name& prefix)
|
|
: m_prefix(prefix)
|
|
{
|
|
}
|
|
|
|
void
|
|
Entry::setStrategy(shared_ptr<fw::Strategy> strategy)
|
|
{
|
|
BOOST_ASSERT(static_cast<bool>(strategy));
|
|
m_strategy = strategy;
|
|
|
|
NFD_LOG_INFO("Set strategy " << strategy->getName() << " for " << m_prefix << " prefix");
|
|
}
|
|
|
|
} // namespace strategy_choice
|
|
} // namespace nfd
|