Update of /cvsroot/openamf/openamf/src/java/org/openamf
In directory sc8-pr-cvs1:/tmp/cvs-serv24368/src/java/org/openamf
Modified Files:
AdvancedGateway.java DefaultGateway.java
Log Message:
cleaned up logging
now you can just watch at the INFO level, and see the info you need
Index: AdvancedGateway.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/AdvancedGateway.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** AdvancedGateway.java 12 Jun 2003 18:32:05 -0000 1.18
--- AdvancedGateway.java 5 Jul 2003 19:50:48 -0000 1.19
***************
*** 128,132 ****
if (stateBean == null) {
! log.debug("loading " + stateBeanConfig.getClassName());
Class stateBeanClass =
Thread
--- 128,132 ----
if (stateBean == null) {
! log.info("Loading " + stateBeanConfig.getClassName());
Class stateBeanClass =
Thread
***************
*** 138,143 ****
if (stateBeanConfig.isApplicationScope()) {
! log.debug(
! "storing "
+ stateBeanConfig.getClassName()
+ " in ServletContext");
--- 138,143 ----
if (stateBeanConfig.isApplicationScope()) {
! log.info(
! "Storing "
+ stateBeanConfig.getClassName()
+ " in ServletContext");
***************
*** 146,151 ****
stateBean);
} else {
! log.debug(
! "storing "
+ stateBeanConfig.getClassName()
+ " in HttpSession");
--- 146,151 ----
stateBean);
} else {
! log.info(
! "Storing "
+ stateBeanConfig.getClassName()
+ " in HttpSession");
***************
*** 156,166 ****
} else {
if (stateBeanConfig.isApplicationScope()) {
! log.debug(
! "got "
+ stateBeanConfig.getClassName()
+ " from ServletContext");
} else {
! log.debug(
! "got "
+ stateBeanConfig.getClassName()
+ " from HttpSession");
--- 156,166 ----
} else {
if (stateBeanConfig.isApplicationScope()) {
! log.info(
! "Got "
+ stateBeanConfig.getClassName()
+ " from ServletContext");
} else {
! log.info(
! "Got "
+ stateBeanConfig.getClassName()
+ " from HttpSession");
***************
*** 219,223 ****
ResultFilter resultFilter = (ResultFilter) filterClass.newInstance();
! log.debug("calling filter");
return resultFilter.filter(serviceResult, filterConfig);
--- 219,223 ----
ResultFilter resultFilter = (ResultFilter) filterClass.newInstance();
! log.info("calling Filter: " + filterConfig.getClassName());
return resultFilter.filter(serviceResult, filterConfig);
Index: DefaultGateway.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/DefaultGateway.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** DefaultGateway.java 10 Jun 2003 17:30:11 -0000 1.30
--- DefaultGateway.java 5 Jul 2003 19:50:48 -0000 1.31
***************
*** 69,72 ****
--- 69,78 ----
log.debug("value = " + body.getValue());
}
+ } else if (log.isInfoEnabled()) {
+ int bodyCount = requestMessage.getBodyCount();
+ for (int i = 0; i < bodyCount; i++) {
+ AMFBody body = requestMessage.getBody(i);
+ log.info("Body " + i + " target=" + body.getTarget() + " value=" + body.getValue());
+ }
}
}
***************
*** 266,271 ****
}
! if (log.isDebugEnabled()) {
! log.debug(config);
}
--- 272,277 ----
}
! if (log.isInfoEnabled()) {
! log.info(config);
}
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.