TcpServerBinder uses beforeOnError to log any failures to create a connection (to capture connection info) and then it goes to SimpleSingleSubscriber that logs it again.
Modifications:
Use new Single.subscribe(...) overload introduced in #3112 that takes errorConsumer to log "Failed to create a connection";
Log full Channel info instead of just remote address to keep a consistent pattern of starting all network-level logs with channel id;
Motivation:
TcpServerBinder
usesbeforeOnError
to log any failures to create a connection (to capture connection info) and then it goes toSimpleSingleSubscriber
that logs it again.Modifications:
Single.subscribe(...)
overload introduced in #3112 that takeserrorConsumer
to log "Failed to create a connection";Channel
info instead of just remote address to keep a consistent pattern of starting all network-level logs with channel id;Result:
Exception is logged only once.