Inject journals:

Calls to WriteLog are replaced with injected journals
This commit is contained in:
seelabs
2015-09-19 11:06:12 -07:00
committed by Vinnie Falco
parent df6ac8f7f5
commit 92b2ca70b7
131 changed files with 1336 additions and 1076 deletions

View File

@@ -32,7 +32,7 @@ std::unique_ptr<beast::Stoppable> makeServer (ServerDescription const& desc)
if (version.empty())
version = WebSocket02::versionName();
WriteLog (lsWARNING, WebSocket) << "Websocket version " << version;
JLOG (desc.app.journal("WebSocket").warning) << "Websocket version " << version;
if (version == WebSocket02::versionName())
return makeServer02 (desc);
assert (version == "04");