Catch all Throwables when initializing extensions, improved logging output.
This commit is contained in:
parent
bec04779ed
commit
b25185451f
1 changed files with 3 additions and 4 deletions
|
@ -321,10 +321,9 @@ public class Server implements IPathElement, Runnable {
|
|||
|
||||
ext.init(this);
|
||||
extensions.add(ext);
|
||||
getLogger().log("loaded: " + extClassName);
|
||||
} catch (Exception e) {
|
||||
getLogger().log("error: " + extClassName + " (" + e.toString() +
|
||||
")");
|
||||
getLogger().log("Loaded: " + extClassName);
|
||||
} catch (Throwable e) {
|
||||
getLogger().log("Error loading extension " + extClassName + ": " + e.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue