}
logger.error(receiveTimer.ellapsed(), "[RCVD] {" + response + "} (len=" + response.length() + ")");
}
throw new HostUnavailableSystemException("SISTEMA CENTRAL INDISPONIVEL! ERRO COMUNICACOES! TIMEOUT!");
} catch (Exception e) {
logger.error(e);
// s� mostra o erro se a mensagem n�o tiver dados confidenciais (ex: login)
logger.error(sendTimer.ellapsed(), "[SENT] {" + request + "}");
if (response != null && logger.getLevel().getLevel() < Level.FINER.getLevel()) {
receiveTimer.stop();
totalTimer.stop();
if (threshold > 0 && !tooLongAlreadyDumped && totalTimer.ellapsed() > threshold){
logger.push("too long");
tooLongAlreadyDumped = true;
}
logger.error(receiveTimer.ellapsed(), "[RCVD] {" + response + "}");
}
throw new HostUnavailableSystemException("SISTEMA CENTRAL INDISPONIVEL! ERRO COMUNICACOES!");
}
if (threshold > 0 && !tooLongAlreadyDumped && totalTimer.ellapsed() > threshold){
logger.push("too long");
tooLongAlreadyDumped = true;