1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-27 00:32:07 +01:00

Write out error if failed to load custom debugger.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2257 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2004-03-15 22:59:03 +00:00 committed by mtucker
parent 2f0c000c82
commit 16f5004301

View file

@ -690,10 +690,15 @@ public class XMPPConnection {
// Detect the debugger class to use.
String className = System.getProperty("smack.debuggerClass");
Class debuggerClass = null;
if (className != null) {
try {
debuggerClass = Class.forName(className);
}
catch (Exception e) {
e.printStackTrace();
}
}
if (debuggerClass == null) {
try {
debuggerClass =
Class.forName("org.jivesoftware.smackx.debugger.EnhancedDebugger");