Continuation of changes to switch to log4j from System.err.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user