wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r818954 - in /incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal: RequestProcessor.java application/ApplicationProcessor.java handlers/InvokeMethodHandler.java
Date Fri, 25 Sep 2009 18:53:38 GMT
Author: bluk
Date: Fri Sep 25 18:53:38 2009
New Revision: 818954

URL: http://svn.apache.org/viewvc?rev=818954&view=rev
Log:
Remove some redundant messages

Add message to indicate if this was a
Wink application.

Add message closer to the target invocation
in case where something else interferes
with the invocation and the stack trace
isn't clear.

Modified:
    incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/RequestProcessor.java
    incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/application/ApplicationProcessor.java
    incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/handlers/InvokeMethodHandler.java

Modified: incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/RequestProcessor.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/RequestProcessor.java?rev=818954&r1=818953&r2=818954&view=diff
==============================================================================
--- incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/RequestProcessor.java
(original)
+++ incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/RequestProcessor.java
Fri Sep 25 18:53:38 2009
@@ -148,7 +148,6 @@
         try {
             ServerMessageContext msgContext = createMessageContext(request, response);
             RuntimeContextTLS.setRuntimeContext(msgContext);
-            logger.debug("Creating ServerMessageContext: {}", msgContext);
             logger.debug("Set message context and starting request handlers chain: {}", msgContext);
             // run the request handler chain
             configuration.getRequestHandlersChain().run(msgContext);
@@ -162,7 +161,6 @@
             ServerMessageContext msgContext = createMessageContext(request, response);
             RuntimeContextTLS.setRuntimeContext(msgContext);
             msgContext.setResponseEntity(t);
-            logger.debug("Creating ServerMessageContext: {}", msgContext);
             // run the error handler chain
             logger.debug("Exception occured, starting error handlers chain: {}", msgContext);
             configuration.getErrorHandlersChain().run(msgContext);

Modified: incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/application/ApplicationProcessor.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/application/ApplicationProcessor.java?rev=818954&r1=818953&r2=818954&view=diff
==============================================================================
--- incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/application/ApplicationProcessor.java
(original)
+++ incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/application/ApplicationProcessor.java
Fri Sep 25 18:53:38 2009
@@ -62,11 +62,12 @@
     }
 
     public void process() {
-        logger.debug("Processing Application:");
+        logger.debug("Processing Application: {}", application);
 
         double priority = WinkApplication.DEFAULT_PRIORITY;
         if (application instanceof WinkApplication) {
             priority = ((WinkApplication)application).getPriority();
+            logger.debug("WinkApplication priority is set to: {}", priority);
         }
 
         // process singletons
@@ -93,6 +94,7 @@
         double priority = sApplication.getPriority();
 
         if (instances == null) {
+            logger.debug("WinkApplication.getInstances() returned null");
             return;
         }
 

Modified: incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/handlers/InvokeMethodHandler.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/handlers/InvokeMethodHandler.java?rev=818954&r1=818953&r2=818954&view=diff
==============================================================================
--- incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/handlers/InvokeMethodHandler.java
(original)
+++ incubator/wink/trunk/wink-server/src/main/java/org/apache/wink/server/internal/handlers/InvokeMethodHandler.java
Fri Sep 25 18:53:38 2009
@@ -48,6 +48,7 @@
             Object result = javaMethod.invoke(instance, parameters);
             context.setResponseEntity(result);
         } catch (InvocationTargetException ite) {
+            logger.debug("Excpetion encountered during invocation: {}", ite.getTargetException());
             throw ite.getTargetException(); // unpack the original exception
         }
     }



Mime
View raw message