mirror of https://github.com/grpc/grpc-java.git
log exception to FINE
This commit is contained in:
parent
38af7ebf84
commit
7374b78470
|
|
@ -120,6 +120,8 @@ import java.util.concurrent.LinkedBlockingQueue;
|
||||||
import java.util.concurrent.ScheduledExecutorService;
|
import java.util.concurrent.ScheduledExecutorService;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.concurrent.atomic.AtomicReference;
|
import java.util.concurrent.atomic.AtomicReference;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
import java.util.logging.Logger;
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
import javax.net.ssl.SSLPeerUnverifiedException;
|
import javax.net.ssl.SSLPeerUnverifiedException;
|
||||||
import javax.net.ssl.SSLSession;
|
import javax.net.ssl.SSLSession;
|
||||||
|
|
@ -140,6 +142,7 @@ import org.mockito.verification.VerificationMode;
|
||||||
* <p> New tests should avoid using Mockito to support running on AppEngine.</p>
|
* <p> New tests should avoid using Mockito to support running on AppEngine.</p>
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractInteropTest {
|
public abstract class AbstractInteropTest {
|
||||||
|
private static Logger logger = Logger.getLogger(AbstractInteropTest.class.getName());
|
||||||
|
|
||||||
@Rule public final Timeout globalTimeout = Timeout.seconds(30);
|
@Rule public final Timeout globalTimeout = Timeout.seconds(30);
|
||||||
|
|
||||||
|
|
@ -301,7 +304,8 @@ public abstract class AbstractInteropTest {
|
||||||
channel.shutdownNow();
|
channel.shutdownNow();
|
||||||
try {
|
try {
|
||||||
channel.awaitTermination(1, TimeUnit.SECONDS);
|
channel.awaitTermination(1, TimeUnit.SECONDS);
|
||||||
} catch (InterruptedException unused) {
|
} catch (InterruptedException ie) {
|
||||||
|
logger.log(Level.FINE, "Interrupted while waiting for channel termination", ie);
|
||||||
// Best effort. If there is an interruption, we want to continue cleaning up, but quickly
|
// Best effort. If there is an interruption, we want to continue cleaning up, but quickly
|
||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue