diff --git a/sandboxed_api/sandbox2/logserver.cc b/sandboxed_api/sandbox2/logserver.cc index be62b35..864fc76 100644 --- a/sandboxed_api/sandbox2/logserver.cc +++ b/sandboxed_api/sandbox2/logserver.cc @@ -34,9 +34,9 @@ void LogServer::Run() { severity = logging::ERROR; fatal_string = " FATAL"; } - logging::LogMessage log_message(msg.path().c_str(), msg.line(), severity); - log_message.stream() << "(sandboxee " << msg.pid() << fatal_string - << "): " << msg.message(); + logging::LogMessage(msg.path().c_str(), msg.line(), severity); + log_message.stream() + << "(sandboxee " << msg.pid() << fatal_string << "): " << msg.message(); } LOG(INFO) << "Receive failed, shutting down LogServer";