You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by el...@apache.org on 2014/09/09 07:34:12 UTC

git commit: Printed out the sent message (we were getting an empty byte before). That will fix DIRMINA-833

Repository: mina
Updated Branches:
  refs/heads/2.0 5955d7281 -> 3ebfb8c09


Printed out the sent message (we were getting an empty byte before).
That will fix DIRMINA-833

Project: http://git-wip-us.apache.org/repos/asf/mina/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina/commit/3ebfb8c0
Tree: http://git-wip-us.apache.org/repos/asf/mina/tree/3ebfb8c0
Diff: http://git-wip-us.apache.org/repos/asf/mina/diff/3ebfb8c0

Branch: refs/heads/2.0
Commit: 3ebfb8c09444ce5dc7cd68d673df7c7f11f38503
Parents: 5955d72
Author: Emmanuel Lécharny <el...@symas.com>
Authored: Tue Sep 9 07:33:40 2014 +0200
Committer: Emmanuel Lécharny <el...@symas.com>
Committed: Tue Sep 9 07:33:40 2014 +0200

----------------------------------------------------------------------
 .../java/org/apache/mina/filter/logging/LoggingFilter.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina/blob/3ebfb8c0/mina-core/src/main/java/org/apache/mina/filter/logging/LoggingFilter.java
----------------------------------------------------------------------
diff --git a/mina-core/src/main/java/org/apache/mina/filter/logging/LoggingFilter.java b/mina-core/src/main/java/org/apache/mina/filter/logging/LoggingFilter.java
index 0044d4f..5cc7aa1 100644
--- a/mina-core/src/main/java/org/apache/mina/filter/logging/LoggingFilter.java
+++ b/mina-core/src/main/java/org/apache/mina/filter/logging/LoggingFilter.java
@@ -139,7 +139,7 @@ public class LoggingFilter extends IoFilterAdapter {
 
     /**
      * Log if the logger and the current event log level are compatible. We log
-     * a formated message and its parameters. 
+     * a formated message and its parameters.
      * 
      * @param eventLevel the event log level as requested by the user
      * @param message the formated message to log
@@ -169,7 +169,7 @@ public class LoggingFilter extends IoFilterAdapter {
 
     /**
      * Log if the logger and the current event log level are compatible. We log
-     * a simple message. 
+     * a simple message.
      * 
      * @param eventLevel the event log level as requested by the user
      * @param message the message to log
@@ -210,7 +210,7 @@ public class LoggingFilter extends IoFilterAdapter {
 
     @Override
     public void messageSent(NextFilter nextFilter, IoSession session, WriteRequest writeRequest) throws Exception {
-        log(messageSentLevel, "SENT: {}", writeRequest.getMessage());
+        log(messageSentLevel, "SENT: {}", writeRequest.getOriginalRequest().getMessage());
         nextFilter.messageSent(session, writeRequest);
     }