Reverted back to the previous MessageEvent.toString() implementation that is more correct

This commit is contained in:
Trustin Lee 2009-07-18 07:49:31 +00:00
parent 2cf7816903
commit 5c49cae981
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ public class DownstreamMessageEvent implements MessageEvent {
@Override
public String toString() {
if (getRemoteAddress() == null) {
if (getRemoteAddress() == getChannel().getRemoteAddress()) {
return getChannel().toString() + " WRITE: " +
StringUtil.stripControlCharacters(getMessage());
} else {

View File

@ -82,7 +82,7 @@ public class UpstreamMessageEvent implements MessageEvent {
@Override
public String toString() {
if (getRemoteAddress() == null) {
if (getRemoteAddress() == getChannel().getRemoteAddress()) {
return getChannel().toString() + " RECEIVED: " +
StringUtil.stripControlCharacters(getMessage());
} else {