Use AppLog and System.Logger for logging - static imports

This commit is contained in:
Rob Bygrave committed 2022-08-23 15:18:46 +12:00
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);
}
}