Commit 873e85e1 authored by Dominik Charousset's avatar Dominik Charousset

Fix runtime error with logging enabled

parent 58090f7d
...@@ -77,8 +77,8 @@ bool monitorable_actor::cleanup(error&& reason, execution_unit* host) { ...@@ -77,8 +77,8 @@ bool monitorable_actor::cleanup(error&& reason, execution_unit* host) {
}); });
if (! set_fail_state) if (! set_fail_state)
return false; return false;
CAF_LOG_INFO_IF(host && host->system().node() == node(), CAF_LOG_INFO("cleanup" << CAF_ARG(id())
"cleanup" << CAF_ARG(id()) << CAF_ARG(reason)); << CAF_ARG(node()) << CAF_ARG(reason));
// send exit messages // send exit messages
for (attachable* i = head.get(); i != nullptr; i = i->next.get()) for (attachable* i = head.get(); i != nullptr; i = i->next.get())
i->actor_exited(reason, host); i->actor_exited(reason, host);
......
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