You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ju...@apache.org on 2018/11/05 21:35:39 UTC
[jspwiki] 03/21: log exception
This is an automated email from the ASF dual-hosted git repository.
juanpablo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jspwiki.git
commit 789cef21571256af96cdcb9889e6b8006d08e93e
Author: juanpablo <ju...@apache.org>
AuthorDate: Sat Nov 3 17:04:58 2018 +0100
log exception
---
jspwiki-main/src/main/java/org/apache/wiki/auth/UserManager.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/jspwiki-main/src/main/java/org/apache/wiki/auth/UserManager.java b/jspwiki-main/src/main/java/org/apache/wiki/auth/UserManager.java
index 6f503d5..6ea4de3 100644
--- a/jspwiki-main/src/main/java/org/apache/wiki/auth/UserManager.java
+++ b/jspwiki-main/src/main/java/org/apache/wiki/auth/UserManager.java
@@ -155,8 +155,7 @@ public class UserManager {
try
{
- dbClassName = TextUtil.getRequiredProperty( m_engine.getWikiProperties(),
- PROP_DATABASE );
+ dbClassName = TextUtil.getRequiredProperty( m_engine.getWikiProperties(), PROP_DATABASE );
log.info("Attempting to load user database class "+dbClassName);
final Class<?> dbClass = ClassUtil.findClass( USERDATABASE_PACKAGE, dbClassName );
@@ -166,7 +165,7 @@ public class UserManager {
}
catch( final NoRequiredPropertyException e )
{
- log.error( "You have not set the '"+PROP_DATABASE+"'. You need to do this if you want to enable user management by JSPWiki." );
+ log.error( "You have not set the '"+PROP_DATABASE+"'. You need to do this if you want to enable user management by JSPWiki.", e );
}
catch( final ClassNotFoundException e )
{
@@ -182,7 +181,7 @@ public class UserManager {
}
catch( final WikiSecurityException e )
{
- log.error( "Exception initializing user database: " + e.getMessage() );
+ log.error( "Exception initializing user database: " + e.getMessage(), e );
}
finally
{