mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 15:10:02 +00:00
Use AppLog and System.Logger for logging - static imports
This commit is contained in:
1 parent
a23f241fff
commit
4252445eb4
73 files changed
+473
-416
No files matched your search
@@ -7,9 +7,10 @@ import io.ebean.annotation.PersistBatch;
|
||||
import io.ebean.annotation.Platform;
|
||||
import io.ebeaninternal.api.SpiEbeanServer;
|
||||
|
||||
import java.lang.System.Logger.Level;
|
||||
import java.sql.Types;
|
||||
|
||||
import static java.lang.System.Logger.Level.ERROR;
|
||||
|
||||
public abstract class BaseTestCase {
|
||||
|
||||
protected static System.Logger logger = AppLog.getLogger(BaseTestCase.class);
|
||||
@@ -35,7 +36,7 @@ public abstract class BaseTestCase {
|
||||
// First try, if we get the default server. If this fails, all tests will fail.
|
||||
DB.getDefault();
|
||||
} catch (Throwable e) {
|
||||
logger.log(Level.ERROR, "Fatal error while getting ebean-server. Exiting...", e);
|
||||
logger.log(ERROR, "Fatal error while getting ebean-server. Exiting...", e);
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user