diff --git a/jspwiki-main/src/main/java/org/apache/wiki/auth/authorize/DefaultGroupManager.java b/jspwiki-main/src/main/java/org/apache/wiki/auth/authorize/DefaultGroupManager.java index 3d6c2ed97e..fccf6c1cb0 100644 --- a/jspwiki-main/src/main/java/org/apache/wiki/auth/authorize/DefaultGroupManager.java +++ b/jspwiki-main/src/main/java/org/apache/wiki/auth/authorize/DefaultGroupManager.java @@ -112,7 +112,7 @@ public GroupDatabase getGroupDatabase() throws WikiSecurityException { if( dbClassName == null ) { dbClassName = XMLGroupDatabase.class.getName(); } - LOG.info( "Attempting to load group database class {}" + dbClassName ); + LOG.info( "Attempting to load group database class {}", dbClassName ); m_groupDatabase = ClassUtil.buildInstance( "org.apache.wiki.auth.authorize", dbClassName ); m_groupDatabase.initialize( m_engine, m_engine.getWikiProperties() ); LOG.info( "Group database initialized." ); diff --git a/jspwiki-util/src/main/java/org/apache/wiki/util/MailUtil.java b/jspwiki-util/src/main/java/org/apache/wiki/util/MailUtil.java index 3a3720c541..8e8ea9ac78 100644 --- a/jspwiki-util/src/main/java/org/apache/wiki/util/MailUtil.java +++ b/jspwiki-util/src/main/java/org/apache/wiki/util/MailUtil.java @@ -412,7 +412,7 @@ static Session getJNDIMailSession(final String jndiName ) throws NamingException final Context ctx = (Context) initCtx.lookup( JAVA_COMP_ENV ); session = (Session) ctx.lookup( jndiName ); } catch( final NamingException e ) { - LOG.warn( "JNDI mail session initialization error: {}" + e.getMessage() ); + LOG.warn( "JNDI mail session initialization error: {}", e.getMessage() ); throw e; } LOG.debug( "mail session obtained from JNDI mail factory: {}", jndiName );