Reverted back to the previous MessageEvent.toString() implementation that is more correct
This commit is contained in:
parent
2cf7816903
commit
5c49cae981
@ -86,7 +86,7 @@ public class DownstreamMessageEvent implements MessageEvent {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
if (getRemoteAddress() == null) {
|
if (getRemoteAddress() == getChannel().getRemoteAddress()) {
|
||||||
return getChannel().toString() + " WRITE: " +
|
return getChannel().toString() + " WRITE: " +
|
||||||
StringUtil.stripControlCharacters(getMessage());
|
StringUtil.stripControlCharacters(getMessage());
|
||||||
} else {
|
} else {
|
||||||
|
@ -82,7 +82,7 @@ public class UpstreamMessageEvent implements MessageEvent {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
if (getRemoteAddress() == null) {
|
if (getRemoteAddress() == getChannel().getRemoteAddress()) {
|
||||||
return getChannel().toString() + " RECEIVED: " +
|
return getChannel().toString() + " RECEIVED: " +
|
||||||
StringUtil.stripControlCharacters(getMessage());
|
StringUtil.stripControlCharacters(getMessage());
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user