Skip to content

Commit

Permalink
Merge branch 'HandledeserializeNodesDhtProtocolException' of https://…
Browse files Browse the repository at this point in the history
…github.com/lucassdiass/opendht into HandledeserializeNodesDhtProtocolException
  • Loading branch information
lucassdiass committed Apr 24, 2022
2 parents 2c761f8 + c88b636 commit 47bd621
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/network_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ NetworkEngine::process(std::unique_ptr<ParsedMessage>&& msg, const SockAddr& fro
} catch (DhtProtocolException &ex) {
if (logIncoming_)
if (logger_)
logger_->ERR("Exception in deserializeNodes: %s, code: %u", ex.getMsg(), ex.getCode());
logger_->ERR("Exception in deserializeNodes: %s, code: %u", ex.getMsg().c_str(), ex.getCode());
return;
}
}
Expand Down Expand Up @@ -596,7 +596,7 @@ NetworkEngine::process(std::unique_ptr<ParsedMessage>&& msg, const SockAddr& fro
} catch (DhtProtocolException &ex) {
if (logIncoming_)
if (logger_)
logger_->ERR("Exception in deserializeNodes: %s, code: %u", ex.getMsg(), ex.getCode());
logger_->ERR("Exception in deserializeNodes: %s, code: %u", ex.getMsg().c_str(), ex.getCode());
return;
}
break;
Expand All @@ -607,7 +607,7 @@ NetworkEngine::process(std::unique_ptr<ParsedMessage>&& msg, const SockAddr& fro
} catch (DhtProtocolException &ex) {
if (logIncoming_)
if (logger_)
logger_->ERR("Exception in deserializeNodes: %s, code: %u", ex.getMsg(), ex.getCode());
logger_->ERR("Exception in deserializeNodes: %s, code: %u", ex.getMsg().c_str(), ex.getCode());
return;
}
}
Expand Down

0 comments on commit 47bd621

Please sign in to comment.