Don't log full stack trace of ignored Exception in OmnipodCommunicationService.exchangePackets
This commit is contained in:
parent
b676638942
commit
5b96e18234
|
@ -319,7 +319,7 @@ public class OmnipodCommunicationService extends RileyLinkCommunicationManager {
|
||||||
response = sendAndListen(packet, responseTimeoutMilliseconds, repeatCount, 9, preambleExtensionMilliseconds, OmnipodPacket.class);
|
response = sendAndListen(packet, responseTimeoutMilliseconds, repeatCount, 9, preambleExtensionMilliseconds, OmnipodPacket.class);
|
||||||
} catch (RileyLinkCommunicationException | OmnipodException ex) {
|
} catch (RileyLinkCommunicationException | OmnipodException ex) {
|
||||||
if (isLoggingEnabled()) {
|
if (isLoggingEnabled()) {
|
||||||
LOG.debug("Ignoring exception in exchangePackets", ex);
|
LOG.debug("Ignoring exception in exchangePackets: "+ ex.getClass().getSimpleName() +": "+ ex.getMessage());
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
throw new CommunicationException(CommunicationException.Type.UNEXPECTED_EXCEPTION, ex);
|
throw new CommunicationException(CommunicationException.Type.UNEXPECTED_EXCEPTION, ex);
|
||||||
|
|
Loading…
Reference in a new issue