Skip to content

Commit

Permalink
[platform] do not log ControlFlowException when reading from the stream
Browse files Browse the repository at this point in the history
EA-348909

GitOrigin-RevId: 3b4083cdf629d581c8c8c3805f1c276151749de8
  • Loading branch information
juliabeliaeva authored and intellij-monorepo-bot committed Jan 9, 2022
1 parent 90c5cbb commit 5ccf887
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion platform/util/src/com/intellij/util/io/BaseDataReader.java
Expand Up @@ -2,6 +2,7 @@
package com.intellij.util.io;

import com.intellij.ReviseWhenPortedToJDK;
import com.intellij.openapi.diagnostic.ControlFlowException;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.util.text.StringUtilRt;
import com.intellij.util.ConcurrencyUtil;
Expand Down Expand Up @@ -175,7 +176,9 @@ protected void doRun() {
}
}
catch (Exception e) {
LOG.error(e);
if (!(e instanceof ControlFlowException)) {
LOG.error(e);
}
}
finally {
flush();
Expand Down

0 comments on commit 5ccf887

Please sign in to comment.