Commit d88a770a authored by Ivan Vilata-i-Balaguer's avatar Ivan Vilata-i-Balaguer
Browse files

Cache client and announcer no longer check for log file for debug.

Same as with client, this is handled elsewhere (client front-end).
parent ec5299d8
......@@ -61,7 +61,7 @@ struct Announcer::Loop {
, entries(ex)
{ }
static bool debug() { return logger.get_threshold() <= DEBUG || logger.get_log_file(); }
static bool debug() { return logger.get_threshold() <= DEBUG; }
Entries::iterator find_entry_by_key(const Key& key) {
for (auto i = entries.begin(); i != entries.end(); ++i) {
......
......@@ -97,8 +97,8 @@ struct Client::Impl {
std::unique_ptr<DhtGroups> _dht_groups;
static bool log_debug() { return logger.get_threshold() <= DEBUG || logger.get_log_file(); }
static bool log_info() { return logger.get_threshold() <= INFO || logger.get_log_file(); }
static bool log_debug() { return logger.get_threshold() <= DEBUG; }
static bool log_info() { return logger.get_threshold() <= INFO; }
Impl( shared_ptr<bt::MainlineDht> dht_
, util::Ed25519PublicKey& cache_pk
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment