diff --git a/src/endpoint.hpp b/src/endpoint.hpp index 252dff14e3..f9ac5a582b 100644 --- a/src/endpoint.hpp +++ b/src/endpoint.hpp @@ -237,7 +237,7 @@ public: boost::lock_guard lock(m_lock); if (!new_handler) { - elog()->at(log::elevel::FATAL) + elog().at(log::elevel::FATAL) << "Tried to switch to a NULL handler." << log::endl; throw websocketpp::exception("TODO: handlers can't be null"); }