[jboss-cvs] jboss-seam/src/main/org/jboss/seam/security ...
Gavin King
gavin.king at jboss.com
Tue Feb 13 02:20:11 EST 2007
User: gavin
Date: 07/02/13 02:20:11
Modified: src/main/org/jboss/seam/security Identity.java
Log:
logging
Revision Changes Path
1.60 +8 -2 jboss-seam/src/main/org/jboss/seam/security/Identity.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Identity.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/Identity.java,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -b -r1.59 -r1.60
--- Identity.java 12 Feb 2007 16:47:29 -0000 1.59
+++ Identity.java 13 Feb 2007 07:20:11 -0000 1.60
@@ -184,13 +184,19 @@
try
{
authenticate();
- log.debug("Login successful for: #0" + getUsername());
+ if ( log.isDebugEnabled() )
+ {
+ log.debug("Login successful for: " + getUsername());
+ }
addLoginSuccessfulMessage();
return "success";
}
catch (LoginException ex)
{
- log.debug("Login failed for:" + getUsername(), ex);
+ if ( log.isDebugEnabled() )
+ {
+ log.debug("Login failed for: " + getUsername(), ex);
+ }
addLoginFailedMessage(ex);
return null;
}
More information about the jboss-cvs-commits
mailing list