Additional debug messages
This commit is contained in:
parent
92f51622cc
commit
87779b0ec8
2 changed files with 3 additions and 2 deletions
|
|
@ -188,7 +188,7 @@ void parse_file(const char *file) {
|
||||||
int_between_f(vars, "ping_timeout", to, {
|
int_between_f(vars, "ping_timeout", to, {
|
||||||
-1, std::numeric_limits<int>::max()
|
-1, std::numeric_limits<int>::max()
|
||||||
});
|
});
|
||||||
if(to == -1) {
|
if(to != -1) {
|
||||||
stream.ping_timeout = std::chrono::milliseconds(to);
|
stream.ping_timeout = std::chrono::milliseconds(to);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -776,7 +776,8 @@ int recv_ping(decltype(broadcast)::ptr_t ref, socket_e type, asio::ip::address &
|
||||||
|
|
||||||
TUPLE_2D_REF(port, msg, *msg_opt);
|
TUPLE_2D_REF(port, msg, *msg_opt);
|
||||||
if(msg != ping) {
|
if(msg != ping) {
|
||||||
BOOST_LOG(error) << "First message is not a PING"sv;
|
BOOST_LOG(error) << "First message is not a PING";
|
||||||
|
BOOST_LOG(debug) << "Received from "sv << addr << ':' << port << " ["sv << util::hex_vec(msg) << ']';
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue