diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2017-11-24 17:05:26 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2017-11-25 11:10:14 +0100 |
commit | 1aedb6c4345719a963a883b13fa983db3ab4b9a8 (patch) | |
tree | 7fa713a904ed1d4647b6d55af813a5a01d8773c9 /desktop | |
parent | 6481a06b066a744e4f1a41ce1b0ca8b27e5f39b4 (diff) |
LOK: provide user feedback while preloading.
Problems are hard enough to debug in a jailed kit process inside
a docker image; provide some visual feedback via stderr.
Change-Id: I54b0a21c1375be2acc9da0bbacf959a419471b08
Reviewed-on: https://gerrit.libreoffice.org/45256
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 42e78e8bec96..5d0e39c419cc 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -14,6 +14,7 @@ #include <stdlib.h> #include <memory> +#include <iostream> #include <boost/property_tree/json_parser.hpp> #include <LibreOfficeKit/LibreOfficeKit.h> @@ -3482,6 +3483,7 @@ static void lo_status_indicator_callback(void *data, comphelper::LibreOfficeKit: } } +/// Used only by LibreOfficeKit when used by Online to pre-initialize static void preloadData() { // First: sit down and read all dictionaries: yum. @@ -3491,14 +3493,14 @@ static void preloadData() css::uno::Reference<linguistic2::XSupportedLocales> xLocales(xSpellChecker, css::uno::UNO_QUERY_THROW); uno::Sequence< css::lang::Locale > aLocales = xLocales->getLocales(); - SAL_INFO("lok", "Preloading #" << aLocales.getLength() << " dictionaries"); + std::cerr << "Preloading dictionaries: "; for (auto &it : aLocales) { - SAL_INFO("lok", " load " << it.Language << "_" << it.Country); + std::cerr << it.Language << "_" << it.Country << " "; css::beans::PropertyValues aNone; xSpellChecker->isValid("forcefed", it, aNone); } - SAL_INFO("lok", "Preloading done"); + std::cerr << "\n"; } static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char* pUserProfileUrl) @@ -3596,6 +3598,7 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char if (eStage == PRE_INIT) { + std::cerr << "Init vcl\n"; InitVCL(); // pre-load all component libraries. |