[libbluray-devel] MountMAnager: drop useless exception dumps

hpi1 git at videolan.org
Mon Mar 23 10:32:13 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Mar 23 11:18:47 2015 +0200| [d0b2b9f8f2791ee0f3371f54ae033edfeadb06d3] | committer: hpi1

MountMAnager: drop useless exception dumps

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

 src/libbluray/bdj/java/org/videolan/MountManager.java |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/libbluray/bdj/java/org/videolan/MountManager.java b/src/libbluray/bdj/java/org/videolan/MountManager.java
index ce2978c..b0a830f 100644
--- a/src/libbluray/bdj/java/org/videolan/MountManager.java
+++ b/src/libbluray/bdj/java/org/videolan/MountManager.java
@@ -82,12 +82,11 @@ public class MountManager {
                     mountPoint = new MountPoint(jarStr, classFiles);
                 }
             } catch (IOException e) {
-                e.printStackTrace();
+                logger.error("Error opening " + path + ": " + e);
                 if (jar != null) {
                     try {
                         jar.close();
                     } catch (IOException e1) {
-                        e1.printStackTrace();
                     }
                 }
                 throw new MountException();
@@ -125,7 +124,7 @@ public class MountManager {
                     }
                 }
             } catch (IOException e) {
-                e.printStackTrace();
+                logger.error("Error uncompressing " + path + ": " + e);
                 mountPoint.remove();
                 throw new MountException();
             } finally {
@@ -133,20 +132,17 @@ public class MountManager {
                     try {
                         inStream.close();
                     } catch (IOException e) {
-                        e.printStackTrace();
                     }
                 }
                 if (outStream != null) {
                     try {
                         outStream.close();
                     } catch (IOException e) {
-                        e.printStackTrace();
                     }
                 }
                 try {
                     jar.close();
                 } catch (IOException e) {
-                    e.printStackTrace();
                 }
             }
 



More information about the libbluray-devel mailing list