directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r165596 - /directory/network/trunk/src/java/org/apache/mina/util/SessionLog.java
Date Mon, 02 May 2005 07:22:03 GMT
Author: trustin
Date: Mon May  2 00:22:02 2005
New Revision: 165596

URL: http://svn.apache.org/viewcvs?rev=165596&view=rev
Log:
Removed unused code

Modified:
    directory/network/trunk/src/java/org/apache/mina/util/SessionLog.java

Modified: directory/network/trunk/src/java/org/apache/mina/util/SessionLog.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/util/SessionLog.java?rev=165596&r1=165595&r2=165596&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/util/SessionLog.java (original)
+++ directory/network/trunk/src/java/org/apache/mina/util/SessionLog.java Mon May  2 00:22:02
2005
@@ -11,7 +11,7 @@
  * Call {@link #getLogger(Session)}, {@link #log(Level,Session, String)}, and
  * {@link #log(Level,Session, String, Throwable)} to log protocol-specific messages.
  * <p>
- * Set {@link #PREFIX}, {@link #LOGGER}, {@link #LEVEL} session attributes
+ * Set {@link #PREFIX} and {@link #LOGGER} session attributes
  * to override prefix string, logger, and log level.
  *
  * @author The Apache Directory Project (dev@directory.apache.org)
@@ -30,11 +30,6 @@
      */
     public static final String LOGGER = SessionLog.class.getName() + ".logger";
     
-    /**
-     * Session attribute key: {@link Level}
-     */
-    public static final String LEVEL = SessionLog.class.getName() + ".level";
-
     public static Logger getLogger( Session session )
     {
         
@@ -47,13 +42,6 @@
             {
                 prefix = "[" + session.getRemoteAddress() + "] ";
                 session.setAttribute( PREFIX, prefix );
-            }
-            
-            Level level = ( Level ) session.getAttribute( LEVEL );
-            if( level == null )
-            {
-                level = Level.INFO;
-                session.setAttribute( LEVEL, level );
             }
                 
             session.setAttribute( LOGGER, log );



Mime
View raw message