log exception to FINE

This commit is contained in:
Eric Anderson 2018-08-17 14:30:43 -07:00
parent 38af7ebf84
commit 7374b78470
1 changed files with 5 additions and 1 deletions

View File

@ -120,6 +120,8 @@ import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.annotation.Nullable;
import javax.net.ssl.SSLPeerUnverifiedException;
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>
*/
public abstract class AbstractInteropTest {
private static Logger logger = Logger.getLogger(AbstractInteropTest.class.getName());
@Rule public final Timeout globalTimeout = Timeout.seconds(30);
@ -301,7 +304,8 @@ public abstract class AbstractInteropTest {
channel.shutdownNow();
try {
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
Thread.currentThread().interrupt();
}