mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 05:52:06 +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:
parent
2f0c000c82
commit
16f5004301
1 changed files with 9 additions and 4 deletions
|
@ -690,13 +690,18 @@ public class XMPPConnection {
|
||||||
// Detect the debugger class to use.
|
// Detect the debugger class to use.
|
||||||
String className = System.getProperty("smack.debuggerClass");
|
String className = System.getProperty("smack.debuggerClass");
|
||||||
Class debuggerClass = null;
|
Class debuggerClass = null;
|
||||||
try {
|
if (className != null) {
|
||||||
debuggerClass = Class.forName(className);
|
try {
|
||||||
|
debuggerClass = Class.forName(className);
|
||||||
|
}
|
||||||
|
catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
if (debuggerClass == null) {
|
||||||
try {
|
try {
|
||||||
debuggerClass =
|
debuggerClass =
|
||||||
Class.forName("org.jivesoftware.smackx.debugger.EnhancedDebugger");
|
Class.forName("org.jivesoftware.smackx.debugger.EnhancedDebugger");
|
||||||
}
|
}
|
||||||
catch (Exception ex) {
|
catch (Exception ex) {
|
||||||
debuggerClass = LiteDebugger.class;
|
debuggerClass = LiteDebugger.class;
|
||||||
|
|
Loading…
Reference in a new issue