From 41d6003e87b580dc435a423863f92b7c0c20647e Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 18 Apr 2013 17:25:06 +0300 Subject: [PATCH] Make the use of SAL_LOG=+WARN+INFO optional Change-Id: I6af17a7745f4de88b4933e93b77eda1050760794 --- .../src/org/libreoffice/experimental/desktop/Desktop.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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