Commit dc26020f authored by Dominik Charousset's avatar Dominik Charousset

Add connection_timeout to debug log output

parent fa71cf3e
...@@ -109,12 +109,13 @@ behavior basp_broker::make_behavior() { ...@@ -109,12 +109,13 @@ behavior basp_broker::make_behavior() {
auto heartbeat_interval = get_or(config(), "caf.middleman.heartbeat-interval", auto heartbeat_interval = get_or(config(), "caf.middleman.heartbeat-interval",
defaults::middleman::heartbeat_interval); defaults::middleman::heartbeat_interval);
if (heartbeat_interval.count() > 0) { if (heartbeat_interval.count() > 0) {
CAF_LOG_DEBUG("enable heartbeat" << CAF_ARG(heartbeat_interval));
auto now = clock().now(); auto now = clock().now();
auto first_tick = now + heartbeat_interval; auto first_tick = now + heartbeat_interval;
auto connection_timeout = get_or(config(), auto connection_timeout = get_or(config(),
"caf.middleman.connection-timeout", "caf.middleman.connection-timeout",
defaults::middleman::connection_timeout); defaults::middleman::connection_timeout);
CAF_LOG_DEBUG("enable heartbeat" << CAF_ARG(heartbeat_interval)
<< CAF_ARG(connection_timeout));
// Note: we send the scheduled time as integer representation to avoid // Note: we send the scheduled time as integer representation to avoid
// having to assign a type ID to the time_point type. // having to assign a type ID to the time_point type.
scheduled_send(this, first_tick, tick_atom_v, scheduled_send(this, first_tick, tick_atom_v,
......
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