Commit 4a9a47e1 authored by Dominik Charousset's avatar Dominik Charousset

Fix possible segfault when compiling with logging

parent d56f78c2
......@@ -154,7 +154,8 @@ result<message> reflect_and_quit(local_actor* ptr, const type_erased_tuple* x) {
}
result<message> print_and_drop(local_actor* ptr, const type_erased_tuple* x) {
CAF_LOG_WARNING("unexpected message" << CAF_ARG(*x));
CAF_LOG_WARNING_IF(x, "unexpected message" << CAF_ARG(*x));
CAF_LOG_WARNING_IF(! x, "unexpected message: *x = ()");
aout(ptr) << "*** unexpected message [id: " << ptr->id()
<< ", name: " << ptr->name() << "]: "
<< (x ? x->stringify() : "()")
......
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