Merge branch '6.0.x'
This commit is contained in:
@@ -220,6 +220,16 @@ public abstract class AbstractResource implements Resource {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Lazily access the logger for debug logging in case of an exception.
|
||||
*/
|
||||
private void debug(Supplier<String> message, Throwable ex) {
|
||||
Log logger = LogFactory.getLog(getClass());
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug(message.get(), ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This implementation compares description strings.
|
||||
@@ -249,11 +259,4 @@ public abstract class AbstractResource implements Resource {
|
||||
return getDescription();
|
||||
}
|
||||
|
||||
private void debug(Supplier<String> message, Throwable ex) {
|
||||
Log logger = LogFactory.getLog(getClass());
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug(message.get(), ex);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user