summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-09-26 09:12:56 +0100
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-12-04 12:23:04 +0100
commit7915b3fcafd0fea249d924f053f0a775206a22f4 (patch)
tree0666acd401ff777195a04b580b1cb113686830f2 /desktop
parent663a8c79700da18e45ed5f69391f5fc1f2406229 (diff)
Add more lok debug output.
This should allow as at least to see if soffice_main thread initialisation gets stuck (which we'd otherwise have a hard time determining if we are trying to debug e.g. on Android). Change-Id: I0baa211c015318c4e0fcf78a4e86a0ba8b895d5f
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 598bfdc3e2cf..8040f546e9ae 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -695,9 +695,12 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath)
// to LOK in an external program).
if (!osl_areCommandArgsSet())
{
+ SAL_INFO("lok", "commandArgs not previously set");
osl_setCommandArgs(2, pArgs);
}
+ SAL_INFO("lok", "attempting to initalize UNO");
initialize_uno(aAppURL);
+ SAL_INFO("lok", "uno successfully initalized");
force_c_locale();
// Force headless -- this is only for bitmap rendering.
@@ -719,9 +722,13 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath)
// the Thread from wherever (it's done again in Desktop::Main), and can
// then use it to wait until we're definitely ready to continue.
+ SAL_INFO("lok", "enabling OfficeIPCThread");
OfficeIPCThread::EnableOfficeIPCThread();
+ SAL_INFO("lok", "starting soffice_main");
pthread_create(&(pLib->maThread), 0, lo_startmain, NULL);
+ SAL_INFO("lok", "waiting for OfficeIPCThread");
OfficeIPCThread::WaitForReady();
+ SAL_INFO("lok", "OfficeIPCThread ready -- continuing");
// If the Thread has been disabled again that indicates that a
// restart is required (or in any case we don't have a useable