Mercurial > stress-tester
changeset 1201:fe6f7073034b
AbstractChannelContext.toString, FlowUtils logging enhanced
author | Devel 2 |
---|---|
date | Mon, 22 Jun 2020 13:21:14 +0200 |
parents | e29869666961 |
children | 19f4e77ac508 |
files | stress-tester/src/main/java/com/passus/st/emitter/socket/AbstractChannelContext.java |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/emitter/socket/AbstractChannelContext.java Mon Jun 22 12:50:59 2020 +0200 +++ b/stress-tester/src/main/java/com/passus/st/emitter/socket/AbstractChannelContext.java Mon Jun 22 13:21:14 2020 +0200 @@ -96,4 +96,15 @@ public void setFlowContext(FlowContext attachment) { this.flowContext = attachment; } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + + sb.append(getLocalAddress()); + sb.append("<->"); + sb.append(getRemoteAddress()); + + return sb.toString(); + } }