Skip to content

Commit

Permalink
Merge pull request hove-io#100 from CanalTP/revert-98-add_lru_log
Browse files Browse the repository at this point in the history
Revert "add lru log"
  • Loading branch information
Patrick Qian authored May 5, 2021
2 parents 006f7d4 + 0a207c6 commit a6d7ba3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lru.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ www.navitia.io
*/

#include "functions.h"
#include "logger.h"

#include <boost/multi_index_container.hpp>
#include <boost/multi_index/ordered_index.hpp>
Expand Down Expand Up @@ -77,8 +76,6 @@ class Lru {
mutable size_t nb_cache_miss = 0;
mutable size_t nb_calls = 0;

mutable log4cplus::Logger logger = log4cplus::Logger::getInstance(LOG4CPLUS_TEXT("raptor"));

std::vector<key_type> keys() const {
auto& list = cache.template get<0>();
std::vector<key_type> result;
Expand Down Expand Up @@ -118,7 +115,6 @@ class Lru {
// older ones) until the requested size
while (list.size() > max_cache) {
list.pop_back();
LOG4CPLUS_INFO(logger, "Invalidate lru cache");
}
return ins.first->second;
}
Expand Down

0 comments on commit a6d7ba3

Please sign in to comment.