reduce log level for no card reader errors

This commit is contained in:
Craig Raw 2023-02-27 12:36:41 +02:00
parent 10e751d6e1
commit 4ab33a373c

View file

@ -99,6 +99,8 @@ public abstract class CardApi {
Throwable cause = Throwables.getRootCause(e); Throwable cause = Throwables.getRootCause(e);
if(cause.getMessage().equals("SCARD_E_NO_SERVICE")) { if(cause.getMessage().equals("SCARD_E_NO_SERVICE")) {
recoverNoService(); recoverNoService();
} else if(cause.getMessage().equals("SCARD_E_NO_READERS_AVAILABLE")) {
log.info("Error detecting card terminals", e);
} else { } else {
log.error("Error detecting card terminals", e); log.error("Error detecting card terminals", e);
} }