logging improvements

This commit is contained in:
Keith Donald
2007-11-18 04:38:56 +00:00
parent 249fb80d9d
commit af725fc536
4 changed files with 13 additions and 7 deletions

View File

@@ -130,7 +130,7 @@ class ContainedConversation implements Conversation, Serializable {
return id.hashCode();
}
// custom serialisation
// custom serialization
private void writeObject(ObjectOutputStream out) throws IOException {
out.defaultWriteObject();

View File

@@ -119,9 +119,6 @@ public class SessionBindingConversationManager implements ConversationManager {
}
public Conversation getConversation(ConversationId id) throws ConversationException {
if (logger.isDebugEnabled()) {
logger.debug("Getting conversation " + id);
}
return getConversationContainer().getConversation(id);
}

View File

@@ -578,7 +578,6 @@ public class Flow extends AnnotatedObject implements FlowDefinition {
*/
private class NoInputMapper implements AttributeMapper {
public void map(Object source, Object target, MappingContext context) {
logger.debug("No input attributes mapped");
}
public String toString() {
@@ -592,7 +591,6 @@ public class Flow extends AnnotatedObject implements FlowDefinition {
*/
private class NoOutputMapper implements AttributeMapper {
public void map(Object source, Object target, MappingContext context) {
logger.debug("No output attributes mapped");
}
public String toString() {

View File

@@ -17,6 +17,7 @@ package org.springframework.webflow.engine;
import org.springframework.core.style.ToStringCreator;
import org.springframework.util.Assert;
import org.springframework.webflow.execution.Event;
import org.springframework.webflow.execution.FlowExecutionException;
import org.springframework.webflow.execution.View;
import org.springframework.webflow.execution.ViewFactory;
@@ -83,6 +84,9 @@ public class ViewState extends TransitionableState {
} else {
View view = viewFactory.getView(context);
renderActionList.execute(context);
if (logger.isDebugEnabled()) {
logger.debug("Rendering view " + view);
}
view.render();
context.getMessageContext().clearMessages();
context.getFlashScope().clear();
@@ -92,9 +96,16 @@ public class ViewState extends TransitionableState {
public void resume(RequestControlContext context) {
View view = viewFactory.getView(context);
if (view.eventSignaled()) {
context.handleEvent(view.getEvent());
Event event = view.getEvent();
if (logger.isDebugEnabled()) {
logger.debug("Event '" + event.getId() + "' signaled on view " + view);
}
context.handleEvent(event);
} else {
renderActionList.execute(context);
if (logger.isDebugEnabled()) {
logger.debug("Rendering refreshed view " + view);
}
view.render();
context.getMessageContext().clearMessages();
context.getFlashScope().clear();