[libbluray-devel] Fix logging exception stack trace
hpi1
git at videolan.org
Mon Sep 8 11:42:48 CEST 2014
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Sep 8 11:25:06 2014 +0300| [6032728ba8272773ec70d330b82e25beb04af2b3] | committer: hpi1
Fix logging exception stack trace
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=6032728ba8272773ec70d330b82e25beb04af2b3
---
src/libbluray/bdj/java/org/dvb/event/EventManager.java | 4 ++--
src/libbluray/bdj/java/org/videolan/IxcRegistryImpl.java | 9 ++++++---
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/libbluray/bdj/java/org/dvb/event/EventManager.java b/src/libbluray/bdj/java/org/dvb/event/EventManager.java
index e7c2194..a3c8bf3 100644
--- a/src/libbluray/bdj/java/org/dvb/event/EventManager.java
+++ b/src/libbluray/bdj/java/org/dvb/event/EventManager.java
@@ -213,7 +213,7 @@ public class EventManager implements ResourceServer {
return false;
} catch (Exception e) {
logger.error("requestRelease() failed: " + e.getClass());
- logger.info("" + e.getStackTrace());
+ e.printStackTrace();
return false;
}
sendResourceStatusEvent(new UserEventAvailableEvent(item.userEvents));
@@ -230,7 +230,7 @@ public class EventManager implements ResourceServer {
return false;
} catch (Exception e) {
logger.error("requestRelease() failed: " + e.getClass());
- logger.info("" + e.getStackTrace());
+ e.printStackTrace();
return false;
}
sendResourceStatusEvent(new UserEventAvailableEvent(item.userEvents));
diff --git a/src/libbluray/bdj/java/org/videolan/IxcRegistryImpl.java b/src/libbluray/bdj/java/org/videolan/IxcRegistryImpl.java
index 73271c8..a634e19 100644
--- a/src/libbluray/bdj/java/org/videolan/IxcRegistryImpl.java
+++ b/src/libbluray/bdj/java/org/videolan/IxcRegistryImpl.java
@@ -125,7 +125,8 @@ public class IxcRegistryImpl {
try {
return Copy.deepCopy(toContext.getClassLoader(), (Serializable)obj);
} catch (Exception e) {
- Debug("wrapOrCopy: failed in deepCopy: " + e.getStackTrace());
+ Debug("wrapOrCopy: failed in deepCopy: ");
+ e.printStackTrace();
throw new RemoteException("serialization/deserialization failed", e);
}
}
@@ -332,9 +333,11 @@ public class IxcRegistryImpl {
}
TRACE("can't find method in callee");
} catch (SecurityException e) {
- TRACE("can't find method in callee: SecurityException: " + e.getStackTrace());
+ TRACE("can't find method in callee: SecurityException:");
+ e.printStackTrace();
} catch (ClassNotFoundException e) {
- TRACE("can't find method in callee: ClassNotFound:" + e.getStackTrace());
+ TRACE("can't find method in callee: ClassNotFound:");
+ e.printStackTrace();
}
return null;
More information about the libbluray-devel
mailing list