-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from OHDSI/ARACHNE-1634-1.9.0-hot-fixes
Arachne 1634 1.9.0 hot fixes
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/java/com/odysseusinc/arachne/executionengine/config/DriverManagerConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.odysseusinc.arachne.executionengine.config; | ||
|
||
import java.sql.Driver; | ||
import java.sql.DriverManager; | ||
import javax.annotation.PostConstruct; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
public class DriverManagerConfig { | ||
|
||
private static final Logger log = LoggerFactory.getLogger(DriverManagerConfig.class); | ||
|
||
@PostConstruct | ||
public void logLoadedDrivers() { | ||
|
||
java.util.Enumeration<Driver> drivers = DriverManager.getDrivers(); | ||
while (drivers.hasMoreElements()) { | ||
Driver d = drivers.nextElement(); | ||
log.info("Loaded JDBC driver: " + d.getClass().getName() + ". Version: " + d.getMajorVersion() + "." + d.getMinorVersion()); | ||
} | ||
} | ||
} |