Skip to content

Commit

Permalink
Include FileNotFoundException in logging.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 361164819
  • Loading branch information
janakdr authored and copybara-github committed Mar 5, 2021
1 parent 1b18d65 commit 1113ec0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import com.google.common.flogger.StackSize;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.devtools.build.lib.util.GroupedList;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
Expand Down Expand Up @@ -332,7 +331,7 @@ void checkValuesMissingBecauseOfFilteredError(
&& (exceptionClass5 == null || !exceptionClass5.isInstance(e)))) {
valuesMissing = true;
// TODO(b/166268889): Remove when debugged.
if (e instanceof IOException && !(e instanceof FileNotFoundException)) {
if (e instanceof IOException) {
logger.atInfo().withStackTrace(StackSize.SMALL).withCause(e).log(
"IOException suppressed by lack of Skyframe declaration (%s %s %s %s %s)",
exceptionClass1,
Expand Down

0 comments on commit 1113ec0

Please sign in to comment.