lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomás Fernández Löbbe <tomasflo...@gmail.com>
Subject Service Unavailable exceptions not logged
Date Tue, 30 Oct 2012 18:54:57 GMT
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

Mime
View raw message