Catch all Throwables when initializing extensions, improved logging output.

This commit is contained in:
hns 2003-08-07 16:32:08 +00:00
parent bec04779ed
commit b25185451f

View file

@ -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());
}
}
}