aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar apell <apell@google.com>2017-11-27 11:48:35 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-11-27 11:50:09 -0800
commitb62bc203c3f9e0242033027702fa9289988fe9ad (patch)
tree4750da3c39a7230fca0d77689bc50a4b929bde45
parent18c59dd473af86f11733bb6b452a8c84fb9106a4 (diff)
Revert unintentional increase in logging.
RELNOTES: None. PiperOrigin-RevId: 177049661
-rw-r--r--src/tools/android/java/com/google/devtools/build/android/AndroidResourceValidatorAction.java15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/tools/android/java/com/google/devtools/build/android/AndroidResourceValidatorAction.java b/src/tools/android/java/com/google/devtools/build/android/AndroidResourceValidatorAction.java
index 5816a8d466..23f1671a07 100644
--- a/src/tools/android/java/com/google/devtools/build/android/AndroidResourceValidatorAction.java
+++ b/src/tools/android/java/com/google/devtools/build/android/AndroidResourceValidatorAction.java
@@ -35,9 +35,7 @@ import java.io.OutputStream;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
-import java.util.Arrays;
import java.util.concurrent.TimeUnit;
-import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
@@ -53,15 +51,6 @@ public class AndroidResourceValidatorAction {
private static final Logger logger =
Logger.getLogger(AndroidResourceValidatorAction.class.getName());
- {
- Logger l = logger;
- while (l != null) {
- l.setLevel(Level.FINEST);
- Arrays.stream(l.getHandlers()).forEach(h -> h.setLevel(Level.FINEST));
- l = l.getParent();
- }
- }
-
/** Flag specifications for this action. */
public static final class Options extends OptionsBase {
@@ -158,7 +147,7 @@ public class AndroidResourceValidatorAction {
Path dummyManifest = tmp.resolve("manifest-aapt-dummy/AndroidManifest.xml");
unpackZip(options.mergedResources, expandedOut);
- logger.info(String.format("unpacked zip at %sms", timer.elapsed(TimeUnit.MILLISECONDS)));
+ logger.fine(String.format("unpacked zip at %sms", timer.elapsed(TimeUnit.MILLISECONDS)));
// We need to make the manifest aapt safe (w.r.t., placeholders). For now, just stub it out.
AndroidResourceProcessor.writeDummyManifestForAapt(dummyManifest, options.packageForR);
@@ -182,7 +171,7 @@ public class AndroidResourceValidatorAction {
null, /* proguardOut */
null, /* mainDexProguardOut */
null /* publicResourcesOut */);
- logger.info(String.format("aapt finished at %sms", timer.elapsed(TimeUnit.MILLISECONDS)));
+ logger.fine(String.format("aapt finished at %sms", timer.elapsed(TimeUnit.MILLISECONDS)));
AndroidResourceOutputs.copyRToOutput(
generatedSources, options.rOutput, VariantType.LIBRARY == packageType);