Continuation of changes to switch to log4j from System.err.

This commit is contained in:
Juan Carlos Luciani
2007-02-21 21:47:07 +00:00
parent f33278929d
commit 9478044e7b
19 changed files with 212 additions and 214 deletions

View File

@@ -100,7 +100,7 @@ public final class CasaLoginModule implements LoginModule
}
catch (Exception e)
{
m_log.error("CasaLoginModule.commit()- Exception caught associating principal, msg: " + e.getMessage());
m_log.error("commit()- Exception caught associating principal, msg: " + e.getMessage());
throw new LoginException("Error encountered");
}
}
@@ -123,7 +123,7 @@ public final class CasaLoginModule implements LoginModule
// Verify that a CallbackHandler was specified
if (m_callbackHandler == null)
{
m_log.error("CasaLoginModule.login()- Null CallbackHandler");
m_log.error("login()- Null CallbackHandler");
throw new LoginException("Null CallbackHandler");
}
@@ -157,7 +157,7 @@ public final class CasaLoginModule implements LoginModule
}
catch (Exception e)
{
m_log.warn("CasaLoginModule.login()- Exception caught during nameCallback, msg: " + e.getMessage());
m_log.warn("login()- Exception caught during nameCallback, msg: " + e.getMessage());
}
// Check the username
@@ -191,7 +191,7 @@ public final class CasaLoginModule implements LoginModule
}
catch (Exception e)
{
m_log.warn("CasaLoginModule.login()- Exception caught during passwordCallback, msg: " + e.getMessage());
m_log.warn("login()- Exception caught during passwordCallback, msg: " + e.getMessage());
}
// Check the CasaAuthenticationToken
@@ -213,14 +213,14 @@ public final class CasaLoginModule implements LoginModule
catch (Exception e)
{
// The validation of one of the tokens failed
m_log.info("CasaLoginModule.login()- Exception caught during token processing, msg: " + e.getMessage());
m_log.info("login()- Exception caught during token processing, msg: " + e.getMessage());
throw new FailedLoginException("Token validation failed");
}
}
else
{
// Token not provided
m_log.warn("CasaLoginModule.login()- Token not provided");
m_log.warn("login()- Token not provided");
throw new FailedLoginException("CasaAuthenticationToken not obtained");
}