Hide more `Channel._transport` privates for repr
Such as the `MsgTransport.stream` and `.drain` attrs since they're rarely that important at the chan level. Also start adopting a `.<attr>=` style for actual attrs of the type versus a `<name>: ` style for meta-field info lines.enable_tpts
parent
a931274da6
commit
c738492879
|
@ -221,14 +221,16 @@ class Channel:
|
||||||
if self.aid else '<unknown>'
|
if self.aid else '<unknown>'
|
||||||
) + (
|
) + (
|
||||||
f' |_msgstream: {tpt_name}\n'
|
f' |_msgstream: {tpt_name}\n'
|
||||||
f' proto={tpt.laddr.proto_key!r}\n'
|
f' maddr: {tpt.maddr!r}\n'
|
||||||
f' layer={tpt.layer_key!r}\n'
|
f' proto: {tpt.laddr.proto_key!r}\n'
|
||||||
f' laddr={tpt.laddr}\n'
|
f' layer: {tpt.layer_key!r}\n'
|
||||||
f' raddr={tpt.raddr}\n'
|
f' codec: {tpt.codec_key!r}\n'
|
||||||
f' codec={tpt.codec_key!r}\n'
|
f' .laddr={tpt.laddr}\n'
|
||||||
f' stream={tpt.stream}\n'
|
f' .raddr={tpt.raddr}\n'
|
||||||
f' maddr={tpt.maddr!r}\n'
|
) + (
|
||||||
f' drained={tpt.drained}\n'
|
f' ._transport.stream={tpt.stream}\n'
|
||||||
|
f' ._transport.drained={tpt.drained}\n'
|
||||||
|
if privates else ''
|
||||||
) + (
|
) + (
|
||||||
f' _send_lock={tpt._send_lock.statistics()}\n'
|
f' _send_lock={tpt._send_lock.statistics()}\n'
|
||||||
if privates else ''
|
if privates else ''
|
||||||
|
@ -444,8 +446,8 @@ class Channel:
|
||||||
await self.send(aid)
|
await self.send(aid)
|
||||||
peer_aid: Aid = await self.recv()
|
peer_aid: Aid = await self.recv()
|
||||||
log.runtime(
|
log.runtime(
|
||||||
f'Received hanshake with peer actor,\n'
|
f'Received hanshake with peer '
|
||||||
f'{peer_aid}\n'
|
f'{peer_aid.reprol(sin_uuid=False)}\n'
|
||||||
)
|
)
|
||||||
# NOTE, we always are referencing the remote peer!
|
# NOTE, we always are referencing the remote peer!
|
||||||
self.aid = peer_aid
|
self.aid = peer_aid
|
||||||
|
|
Loading…
Reference in New Issue