[Libreoffice-commits] online.git: loolwsd/LOOLWSD.cpp
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Thu May 12 15:26:14 UTC 2016
loolwsd/LOOLWSD.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 711b59a2bcd07eed2a56b9a1f6d18b7ef9709629
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Thu May 12 10:47:05 2016 -0400
loolwsd: initialize logging sooner and log server startup
Change-Id: I33ab52069be0b6c0dca5a741857aa86ae58b67cc
Reviewed-on: https://gerrit.libreoffice.org/24934
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp
index bf8b674..c414c0f 100644
--- a/loolwsd/LOOLWSD.cpp
+++ b/loolwsd/LOOLWSD.cpp
@@ -1161,6 +1161,8 @@ LOOLWSD::~LOOLWSD()
void LOOLWSD::initialize(Application& self)
{
+ Log::initialize("wsd");
+
if (geteuid() == 0)
{
throw std::runtime_error("Do not run as root. Please run as lool user.");
@@ -1461,8 +1463,6 @@ Process::PID LOOLWSD::createForKit()
int LOOLWSD::main(const std::vector<std::string>& /*args*/)
{
- Log::initialize("wsd");
-
if (DisplayVersion)
Util::displayVersionInfo("loolwsd");
@@ -1550,14 +1550,14 @@ int LOOLWSD::main(const std::vector<std::string>& /*args*/)
#endif
ThreadPool threadPool(NumPreSpawnedChildren*6, MAX_SESSIONS * 2);
HTTPServer srv(new ClientRequestHandlerFactory(fileServer), threadPool, svs, params1);
-
+ Log::info("Starting master server listening on " + std::to_string(ClientPortNumber));
srv.start();
// And one on the port for child processes
SocketAddress addr2("127.0.0.1", MasterPortNumber);
ServerSocket svs2(addr2);
HTTPServer srv2(new PrisonerRequestHandlerFactory(), threadPool, svs2, params2);
-
+ Log::info("Starting prisoner server listening on " + std::to_string(MasterPortNumber));
srv2.start();
// Fire the ForKit process; we are ready.
More information about the Libreoffice-commits
mailing list