Why are service unavailable exceptions not logged? In the SolrException
class, these error codes are specifically skipped from logging, but I don't
understand why. This is the 'log' method of the SolrException class:
public static void log(Logger log, Throwable e) {
if (e instanceof SolrException
&& ((SolrException) e).code() ==
ErrorCode.SERVICE_UNAVAILABLE.code) {
return;
}
String stackTrace = toStr(e);
String ignore = doIgnore(e, stackTrace);
if (ignore != null) {
log.info(ignore);
return;
}
log.error(stackTrace);
}
Tomás