Skip to content

Commit a04d1ca

Browse files
committed
Fix logs in LTI-CIVIL library loader
1 parent 5050301 commit a04d1ca

File tree

1 file changed

+4
-4
lines changed
  • webcam-capture-drivers/driver-lti-civil/src/main/java/com/github/sarxos/webcam/ds/civil

1 file changed

+4
-4
lines changed

webcam-capture-drivers/driver-lti-civil/src/main/java/com/github/sarxos/webcam/ds/civil/LtiCivilLoader.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class LtiCivilLoader {
1616
private static final Logger LOG = LoggerFactory.getLogger(LtiCivilLoader.class);
1717

1818
/**
19-
* Will be called until JVM shutdown.
19+
* Will be called on JVM shutdown.
2020
*
2121
* @author Bartosz Firyn (SarXos)
2222
*/
@@ -34,7 +34,7 @@ public void run() {
3434
super.run();
3535
if (file.exists()) {
3636
if (!file.delete()) {
37-
LOG.warn(String.format("JVM was not able to remove file %s", file));
37+
LOG.warn("JVM was not able to remove file {}", file);
3838
}
3939
}
4040
}
@@ -65,10 +65,10 @@ private static long copy(InputStream input, OutputStream output) throws IOExcept
6565
}
6666

6767
protected static void load(String lib) {
68-
LOG.info("Loading native library: " + lib);
68+
LOG.info("Loading native library: {}", lib);
6969
try {
7070
System.loadLibrary(lib);
71-
LOG.info("DLL has been loaded from memory: " + lib);
71+
LOG.info("DLL has been loaded from memory: {}", lib);
7272
} catch (UnsatisfiedLinkError e) {
7373
try {
7474
load("civil-" + System.currentTimeMillis(), lib);

0 commit comments

Comments
 (0)