Don't log full stack trace of ignored Exception in OmnipodCommunicationService.exchangePackets

This commit is contained in:
Bart Sopers 2020-05-03 13:50:11 +02:00
parent b676638942
commit 5b96e18234

View file

@ -319,7 +319,7 @@ public class OmnipodCommunicationService extends RileyLinkCommunicationManager {
response = sendAndListen(packet, responseTimeoutMilliseconds, repeatCount, 9, preambleExtensionMilliseconds, OmnipodPacket.class);
} catch (RileyLinkCommunicationException | OmnipodException ex) {
if (isLoggingEnabled()) {
LOG.debug("Ignoring exception in exchangePackets", ex);
LOG.debug("Ignoring exception in exchangePackets: "+ ex.getClass().getSimpleName() +": "+ ex.getMessage());
}
} catch (Exception ex) {
throw new CommunicationException(CommunicationException.Type.UNEXPECTED_EXCEPTION, ex);