Unverified Commit 4c48dc4d authored by Dominik Charousset's avatar Dominik Charousset Committed by GitHub

Merge pull request #640

Fix build with logging enabled
parents bec8b3fe 8ece93c8
......@@ -61,8 +61,7 @@ behavior datagram_connection_broker(broker* self, uint16_t port,
after(autoconnect_timeout) >> [=]() {
CAF_LOG_TRACE(CAF_ARG(""));
// nothing heard in about 10 minutes... just a call it a day, then
CAF_LOG_INFO("aborted direct connection attempt after 10min:"
<< CAF_ARG(nid));
CAF_LOG_INFO("aborted direct connection attempt after 10min");
self->quit(exit_reason::user_shutdown);
}
};
......@@ -70,7 +69,7 @@ behavior datagram_connection_broker(broker* self, uint16_t port,
behavior connection_helper(stateful_actor<connection_helper_state>* self,
actor b) {
CAF_LOG_TRACE(CAF_ARG(s));
CAF_LOG_TRACE(CAF_ARG(b));
self->monitor(b);
self->set_down_handler([=](down_msg& dm) {
CAF_LOG_TRACE(CAF_ARG(dm));
......@@ -99,7 +98,7 @@ behavior connection_helper(stateful_actor<connection_helper_state>* self,
}
}
}
CAF_LOG_INFO("could not connect to node directly:" << CAF_ARG(nid));
CAF_LOG_INFO("could not connect to node directly");
} else if (item == "basp.default-connectivity-udp") {
// create new broker to try addresses for communication via UDP
if (self->system().config().middleman_detach_utility_actors) {
......@@ -121,8 +120,7 @@ behavior connection_helper(stateful_actor<connection_helper_state>* self,
after(autoconnect_timeout) >> [=] {
CAF_LOG_TRACE(CAF_ARG(""));
// nothing heard in about 10 minutes... just a call it a day, then
CAF_LOG_INFO("aborted direct connection attempt after 10min:"
<< CAF_ARG(nid));
CAF_LOG_INFO("aborted direct connection attempt after 10min");
self->quit(exit_reason::user_shutdown);
}
};
......
......@@ -932,7 +932,7 @@ void test_multiplexer::virtual_send(connection_handle hdl,
void test_multiplexer::virtual_send(datagram_handle dst, datagram_handle ep,
const buffer_type& buf) {
CAF_ASSERT(std::this_thread::get_id() == tid_);
CAF_LOG_TRACE(CAF_ARG(hdl));
CAF_LOG_TRACE(CAF_ARG(dst) << CAF_ARG(ep));
auto& vb = virtual_network_buffer(dst);
vb.emplace_back(ep, buf);
read_data(dst);
......
Markdown is supported
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