summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-04-18 17:25:06 +0300
committerTor Lillqvist <tml@iki.fi>2013-04-19 11:03:43 +0300
commit41d6003e87b580dc435a423863f92b7c0c20647e (patch)
tree5bb9f5d85e1c3a3e790a251f9dd17fdfa4cc0df5 /android
parent9e7c73d54cc6a33689cb7bf65bcc6274acc748ad (diff)
Make the use of SAL_LOG=+WARN+INFO optional
Change-Id: I6af17a7745f4de88b4933e93b77eda1050760794
Diffstat (limited to 'android')
-rw-r--r--android/experimental/desktop/src/org/libreoffice/experimental/desktop/Desktop.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/android/experimental/desktop/src/org/libreoffice/experimental/desktop/Desktop.java b/android/experimental/desktop/src/org/libreoffice/experimental/desktop/Desktop.java
index 02845d3617b0..59e59943d0e4 100644
--- a/android/experimental/desktop/src/org/libreoffice/experimental/desktop/Desktop.java
+++ b/android/experimental/desktop/src/org/libreoffice/experimental/desktop/Desktop.java
@@ -68,7 +68,12 @@ public class Desktop
Bootstrap.setup(this);
- Bootstrap.putenv("SAL_LOG=+WARN+INFO");
+ // To enable the putenv below, which turns on all SAL_INFO
+ // logging, do: "adb shell setprop log.tag.LODesktopLogging
+ // VERBOSE".
+
+ if (Log.isLoggable("LODesktopLogging", Log.VERBOSE))
+ Bootstrap.putenv("SAL_LOG=+WARN+INFO");
}
// This sucks, we need to experiment and think, can an app process