try {
waitForInProgressWorkersToFinish(350);
} catch (InterruptedException e) {
- LOG.debug("Grace period of hard stop has been interrupted: {}", e);
+ LOG.debug("Grace period of hard stop has been interrupted: {}", e.getMessage(), e);
Thread.currentThread().interrupt();
}
checkState(!((boolean) f.get(sqlSession)), "Autocommit must be false");
}
} catch (NoSuchFieldException | IllegalAccessException e) {
- LOG.debug("Failed to check the autocommit status of SqlSession: {}", e);
+ LOG.debug("Failed to check the autocommit status of SqlSession: {}", e.getMessage(), e);
}
}
try (DbSession dbSession = dbClient.openSession(false)) {
updateProjectsInWarningInDb(dbSession, nbProjectsInWarning);
} catch (Exception e) {
- LOG.error("Error updating number of projects in warning: {}", e);
+ LOG.error("Error updating number of projects in warning: {}", e.getMessage(), e);
}
projectsInWarning.update(nbProjectsInWarning);
if (nbProjectsInWarning == 0L) {
updateTelemetryProps(now);
}
} catch (Exception e) {
- LOG.debug("Error while checking SonarQube statistics: {}", e);
+ LOG.debug("Error while checking SonarQube statistics: {}", e.getMessage());
}
// do not check at start up to exclude test instance which are not up for a long time
};
try (DbSession dbSession = dbClient.openSession(false)) {
return dbSession.getMapper(IsAliveMapper.class).isAlive() == IsAliveMapper.IS_ALIVE_RETURNED_VALUE;
} catch (RuntimeException e) {
- LOGGER.trace("DB connection is down: {}", e);
+ LOGGER.trace("DB connection is down: {}", e.getMessage(), e);
return false;
}
}