[libbluray-devel] "fixed" logging

hpi1 git at videolan.org
Thu Jan 16 20:37:54 CET 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Jan 15 10:44:29 2014 +0200| [4b65cc1041e71f9ed4a796ea18a70fe88312e051] | committer: hpi1

"fixed" logging

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=4b65cc1041e71f9ed4a796ea18a70fe88312e051
---

 src/libbluray/bdj/java/org/videolan/BDJLoader.java |   17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/libbluray/bdj/java/org/videolan/BDJLoader.java b/src/libbluray/bdj/java/org/videolan/BDJLoader.java
index 0b71b7a..01b7791 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJLoader.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJLoader.java
@@ -162,15 +162,16 @@ public class BDJLoader {
                                                                    appTable[i],
                                                                    bdjo.getAppCaches(),
                                                                    gui));
+                    /* log startup class, startup parameters and jar file */
+                    String[] params = appTable[i].getParams();
+                    String p = "";
+                    if (params != null && params.length > 0) {
+                        p = "(" + StrUtil.Join(params, ",") + ")";
+                    }
+                    logger.info("Loaded class: " + appTable[i].getInitialClass() + p + " from " + appTable[i].getBasePath() + ".jar");
+                } else {
+                    logger.info("Reused class: " + appTable[i].getInitialClass() +     " from " + appTable[i].getBasePath() + ".jar");
                 }
-
-                /* log startup calss, startup parameters and jar file */
-                String[] params = appTable[i].getParams();
-                String p = "";
-                if (params != null && params.length > 0) {
-                    p = "(" + StrUtil.Join(params, ",") + ")";
-                }
-                logger.info("Loaded class: " + appTable[i].getInitialClass() + p + " from " + appTable[i].getBasePath() + ".jar");
             }
 
             // change psr



More information about the libbluray-devel mailing list