summaryrefslogtreecommitdiffstats
path: root/base/server/cmscore
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-06-27 18:44:16 +0200
committerEndi S. Dewata <edewata@redhat.com>2017-06-27 19:38:50 +0200
commit833708b48ea76e71ddf1fa9b0cba53a5aa23a459 (patch)
tree6af2cec5e7017941fbb7d40b89511f778bb2cba4 /base/server/cmscore
parentc297d987d29755452b192ae1306610733381771a (diff)
Fixed error message on invalid log type.
To help troubleshooting the error message on invalid log type has been modified to include the invalid value. https://pagure.io/dogtagpki/issue/2689 Change-Id: Ie245bd9e3a3925979af4708fa911697a9746e54b
Diffstat (limited to 'base/server/cmscore')
-rw-r--r--base/server/cmscore/src/com/netscape/cmscore/logging/LogSubsystem.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/base/server/cmscore/src/com/netscape/cmscore/logging/LogSubsystem.java b/base/server/cmscore/src/com/netscape/cmscore/logging/LogSubsystem.java
index ba405c2cd..e09e1c2ea 100644
--- a/base/server/cmscore/src/com/netscape/cmscore/logging/LogSubsystem.java
+++ b/base/server/cmscore/src/com/netscape/cmscore/logging/LogSubsystem.java
@@ -127,18 +127,17 @@ public class LogSubsystem implements ILogSubsystem {
// for view from console
} catch (ClassNotFoundException e) {
- throw new EBaseException(insName + ":Failed to instantiate class " + className);
+ throw new EBaseException(insName + ": Failed to instantiate class " + className + ": " + e.getMessage(), e);
} catch (IllegalAccessException e) {
- throw new EBaseException(insName + ":Failed to instantiate class " + className);
+ throw new EBaseException(insName + ": Failed to instantiate class " + className + ": " + e.getMessage(), e);
} catch (InstantiationException e) {
- throw new EBaseException(insName + ":Failed to instantiate class " + className);
+ throw new EBaseException(insName + ": Failed to instantiate class " + className + ": " + e.getMessage(), e);
} catch (Throwable e) {
- e.printStackTrace();
throw new EBaseException(insName
- + ":Failed to instantiate class " + className + " error: " + e.getMessage());
+ + ": Failed to instantiate class " + className + " error: " + e.getMessage(), e);
}
if (insName == null) {