diff options
author | 2017-09-05 10:08:25 +0200 | |
---|---|---|
committer | 2017-09-05 14:57:53 +0200 | |
commit | 998ec92036e046e18e5a5508af6f473e209212eb (patch) | |
tree | 56e129feff89ee890ad8156aa20e586e97533c6e /src/main/java/com/google/devtools/build/lib/runtime/commands/CleanCommand.java | |
parent | f6fff466f022d7a174cb9d35d92dc8014e88854b (diff) |
Now really rename all logger instances to "logger".
Turns out, my previous search expression didn't find the ones that were not "final LOG" or "final log" and a surprising number of places were missing the "final" tag.
RELNOTES: None.
PiperOrigin-RevId: 167547507
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/commands/CleanCommand.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/commands/CleanCommand.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/commands/CleanCommand.java b/src/main/java/com/google/devtools/build/lib/runtime/commands/CleanCommand.java index f908039dca..5121d4dd09 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/commands/CleanCommand.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/commands/CleanCommand.java @@ -130,7 +130,7 @@ public final class CleanCommand implements BlazeCommand { } } - private static Logger LOG = Logger.getLogger(CleanCommand.class.getName()); + private static final Logger logger = Logger.getLogger(CleanCommand.class.getName()); @Override public ExitCode exec(CommandEnvironment env, OptionsProvider options) @@ -216,7 +216,7 @@ public final class CleanCommand implements BlazeCommand { "exec >&- 2>&- <&- && (/usr/bin/setsid /bin/rm -rf %s &)&", ShellEscaper.escapeString(tempPath.getPathString())); - LOG.info("Executing shell commmand " + ShellEscaper.escapeString(command)); + logger.info("Executing shell commmand " + ShellEscaper.escapeString(command)); // Doesn't throw iff command exited and was successful. new CommandBuilder() @@ -242,7 +242,7 @@ public final class CleanCommand implements BlazeCommand { } env.getBlazeWorkspace().clearCaches(); if (expunge) { - LOG.info("Expunging..."); + logger.info("Expunging..."); env.getRuntime().prepareForAbruptShutdown(); // Close java.log. LogManager.getLogManager().reset(); @@ -264,18 +264,18 @@ public final class CleanCommand implements BlazeCommand { FileSystemUtils.deleteTreesBelow(outputBase); FileSystemUtils.deleteTree(outputBase); } else if (expungeAsync) { - LOG.info("Expunging asynchronously..."); + logger.info("Expunging asynchronously..."); env.getRuntime().prepareForAbruptShutdown(); asyncClean(env, outputBase, "Output base"); } else { - LOG.info("Output cleaning..."); + logger.info("Output cleaning..."); env.getBlazeWorkspace().resetEvaluator(); // In order to be sure that we delete everything, delete the workspace directory both for // --deep_execroot and for --nodeep_execroot. for (String directory : new String[] {workspaceDirectory, "execroot"}) { Path child = outputBase.getRelative(directory); if (child.exists()) { - LOG.finest("Cleaning " + child + (async ? " asynchronously..." : "")); + logger.finest("Cleaning " + child + (async ? " asynchronously..." : "")); if (async) { asyncClean(env, child, "Output tree"); } else { |