Skip to content

Commit

Permalink
Fix logs in LTI-CIVIL library loader
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed Sep 13, 2017
1 parent 5050301 commit a04d1ca
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class LtiCivilLoader {
private static final Logger LOG = LoggerFactory.getLogger(LtiCivilLoader.class);

/**
* Will be called until JVM shutdown.
* Will be called on JVM shutdown.
*
* @author Bartosz Firyn (SarXos)
*/
Expand All @@ -34,7 +34,7 @@ public void run() {
super.run();
if (file.exists()) {
if (!file.delete()) {
LOG.warn(String.format("JVM was not able to remove file %s", file));
LOG.warn("JVM was not able to remove file {}", file);
}
}
}
Expand Down Expand Up @@ -65,10 +65,10 @@ private static long copy(InputStream input, OutputStream output) throws IOExcept
}

protected static void load(String lib) {
LOG.info("Loading native library: " + lib);
LOG.info("Loading native library: {}", lib);
try {
System.loadLibrary(lib);
LOG.info("DLL has been loaded from memory: " + lib);
LOG.info("DLL has been loaded from memory: {}", lib);
} catch (UnsatisfiedLinkError e) {
try {
load("civil-" + System.currentTimeMillis(), lib);
Expand Down

0 comments on commit a04d1ca

Please sign in to comment.