diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-04-18 17:25:06 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-04-19 11:03:43 +0300 |
commit | 41d6003e87b580dc435a423863f92b7c0c20647e (patch) | |
tree | 5bb9f5d85e1c3a3e790a251f9dd17fdfa4cc0df5 /android | |
parent | Minor comment change (diff) | |
download | core-41d6003e87b580dc435a423863f92b7c0c20647e.tar.gz core-41d6003e87b580dc435a423863f92b7c0c20647e.zip |
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.java | 7 |
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 |