From 7c9f4e9590348f3ce36e05ccc15a4be94ae94c8e Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 15 Oct 2014 15:39:04 +0300 Subject: Use maximum logging verbosity while attempting the restart Change-Id: I3e3162474db1edef3b92e252b249fe373dedbbfd --- .../LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java index 16de4a013bac..74ad782929ab 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java @@ -43,6 +43,7 @@ public class LOKitTileProvider implements TileProvider { mDocument = mOffice.documentLoad(input); if (mDocument == null) { + LibreOfficeKit.putenv("SAL_LOG=+WARN+INFO"); Log.i(LOGTAG, "====> mOffice.documentLoad() returned null, trying to restart 'Office' and loading again"); mOffice.destroy(); Log.i(LOGTAG, "====> mOffice.destroy() done"); @@ -51,6 +52,7 @@ public class LOKitTileProvider implements TileProvider { mOffice = new Office(handle); Log.i(LOGTAG, "====> new Office created"); mDocument = mOffice.documentLoad(input); + LibreOfficeKit.putenv("SAL_LOG=-WARN+INFO.lok"); } Log.i(LOGTAG, "====> mDocument = " + mDocument); -- cgit