/** * Do not log here, deadlock of LogWriter via rereadConfig(). */ private void updateLimit(Log log) { List<LogLimit> limits = getLimits(log); LogLimit max = null; if (limits != null) { for (LogLimit cur : limits) { if (max == null) max = cur; else { if (cur.getRootName().length() > max.getRootName().length()) { max = cur; } } } } if (max != null) { log.setMinimumPriority(max.getLimit()); } else { //if (_log != null) // _log.debug("The log for " + log.getClass() + " has no matching limits"); log.setMinimumPriority(_defaultLimit); } }