CVS: beepcore-java/src/org/beepcore/beep/core ProfileRegistry.java,1.12,1.13

Huston Franklin <[email protected]> Sat, 05 Oct 2002 08:29:12 -0700
Newsgroups gmane.network.beep.beepcore.java.cvs
Message-ID <[email protected]>
Update of /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/core
In directory usw-pr-cvs1:/tmp/cvs-serv6725/src/org/beepcore/beep/core

Modified Files:
	ProfileRegistry.java 
Log Message:
changed to use commons-logging

Index: ProfileRegistry.java
===================================================================
RCS file: /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/core/ProfileRegistry.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** ProfileRegistry.java	7 Sep 2002 14:59:03 -0000	1.12
--- ProfileRegistry.java	5 Oct 2002 15:29:10 -0000	1.13
***************
*** 19,26 ****
  
  
  import java.util.Enumeration;
  import java.util.Hashtable;
  
- import org.beepcore.beep.util.Log;
  import org.beepcore.beep.util.StringUtil;
  
--- 19,28 ----
  
  
+ import org.apache.commons.logging.Log;
+ import org.apache.commons.logging.LogFactory;
+ 
  import java.util.Enumeration;
  import java.util.Hashtable;
  
  import org.beepcore.beep.util.StringUtil;
  
***************
*** 40,43 ****
--- 42,47 ----
  
      // Instance Data
+     private Log log = LogFactory.getLog(this.getClass());
+ 
      private class InternalProfile {
          StartChannelListener listener;
***************
*** 107,112 ****
          // have anything, then return null
          if (tuning == null) {
!             Log.logEntry(Log.SEV_DEBUG,
!                          "Session does not have any tuning properties");
              return null;
          }
--- 111,115 ----
          // have anything, then return null
          if (tuning == null) {
!             log.debug("Session does not have any tuning properties");
              return null;
          }
***************
*** 123,129 ****
                          == null))
              {
!                 Log.logEntry(Log.SEV_DEBUG,
!                              "Session does not have tuning property " +
!                              SessionTuningProperties.STANDARD_PROPERTIES[i]);
                  return null;
              }
--- 126,133 ----
                          == null))
              {
!                 if (log.isDebugEnabled()) {
!                     log.debug("Session does not have tuning property " +
!                               SessionTuningProperties.STANDARD_PROPERTIES[i]);
!                 }
                  return null;
              }



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf