mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-03 19:00:52 +01:00
add Logger to print UpdateException-stacktrace on console
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
package sonia.scm.migration;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class UpdateException extends RuntimeException {
|
||||
private static Logger LOG = LoggerFactory.getLogger(UpdateException.class);
|
||||
|
||||
public UpdateException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public UpdateException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
LOG.error(message, cause);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user