Skip to content

Commit

Permalink
Merge pull request #30 from OHDSI/ARACHNE-1634-1.9.0-hot-fixes
Browse files Browse the repository at this point in the history
Arachne 1634 1.9.0 hot fixes
  • Loading branch information
pavgra authored Nov 29, 2017
2 parents 3524b0f + f26a986 commit 526130a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM hub.arachnenetwork.com/r-env:1.0.0
FROM hub.arachnenetwork.com/r-env:1.0.2
MAINTAINER alexandr.ryabokon@odysseusinc.com
VOLUME /tmp
ADD execution-engine.jar /execution-engine.jar
Expand Down
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());
}
}
}

0 comments on commit 526130a

Please sign in to comment.