final String summary, //
final Throwable exception, //
final Logger logger, //
final TaskListener taskListener) throws IOException {
if (logger != null) {
<BUG>logger.log(Level.SEVERE, exception.getMessage(), exception);
</BUG>
}
if (taskListener != null) {
taskListener.fatalError(summary);

final String summary, //
final Throwable exception, //
final Logger logger, //
final TaskListener taskListener) throws IOException {
if (logger != null) {
logger.log(Level.SEVERE, summary, exception);
}
if (taskListener != null) {
taskListener.fatalError(summary);
