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 rather than slf4j-api
The avaje-applog-slf4j dependency means this is still using slf4j-api for implementation. Remove that dependency and service load the desired implementation.
This commit is contained in:
1 parent
d145e6494d
commit
a23f241fff
108 files changed
+668
-758
No files matched your search
-7
@@ -4,8 +4,6 @@ import io.avaje.classpath.scanner.ClassPathScanner;
|
||||
import io.avaje.classpath.scanner.ClassPathScannerFactory;
|
||||
import io.avaje.classpath.scanner.Resource;
|
||||
import io.ebeaninternal.xmapping.api.XmapEbean;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -16,8 +14,6 @@ import java.util.ServiceLoader;
|
||||
*/
|
||||
class InternalConfigXmlRead {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(InternalConfigXmlRead.class);
|
||||
|
||||
private final ToXmapEbean to = new ToXmapEbean();
|
||||
private final ClassLoader classLoader;
|
||||
private final List<String> mappingLocations;
|
||||
@@ -40,7 +36,6 @@ class InternalConfigXmlRead {
|
||||
private List<Resource> xmlMappingResources() {
|
||||
List<ClassPathScanner> scanners = scanners();
|
||||
List<Resource> resourceList = new ArrayList<>();
|
||||
long st = System.currentTimeMillis();
|
||||
if (mappingLocations != null && !mappingLocations.isEmpty()) {
|
||||
for (ClassPathScanner finder : scanners) {
|
||||
for (String mappingLocation : mappingLocations) {
|
||||
@@ -48,8 +43,6 @@ class InternalConfigXmlRead {
|
||||
}
|
||||
}
|
||||
}
|
||||
long searchTime = System.currentTimeMillis() - st;
|
||||
log.debug("Classpath search mappings[{}] searchTime[{}]", resourceList.size(), searchTime);
|
||||
return resourceList;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user