More bitty (runtime) logging tweaks
parent
a5a0e6854b
commit
61db040702
|
@ -254,11 +254,11 @@ class Portal:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
reminfo: str = (
|
reminfo: str = (
|
||||||
f'`Portal.cancel_actor()` => {self.channel.uid}\n'
|
f'Portal.cancel_actor() => {self.channel.uid}\n'
|
||||||
f'|_{chan}\n'
|
f'|_{chan}\n'
|
||||||
)
|
)
|
||||||
log.cancel(
|
log.cancel(
|
||||||
f'Sending runtime `.cancel()` request to peer\n\n'
|
f'Requesting runtime cancel for peer\n\n'
|
||||||
f'{reminfo}'
|
f'{reminfo}'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -364,14 +364,10 @@ class MsgStream(trio.abc.Channel):
|
||||||
|
|
||||||
if not self._eoc:
|
if not self._eoc:
|
||||||
message: str = (
|
message: str = (
|
||||||
f'Context stream closed by {self._ctx.side!r}\n'
|
f'Stream self-closed by {self._ctx.side!r}-side before EoC\n'
|
||||||
f'|_{self}\n'
|
f'|_{self}\n'
|
||||||
)
|
)
|
||||||
log.cancel(
|
log.cancel(message)
|
||||||
'Stream self-closed before receiving EoC\n\n'
|
|
||||||
+
|
|
||||||
message
|
|
||||||
)
|
|
||||||
self._eoc = trio.EndOfChannel(message)
|
self._eoc = trio.EndOfChannel(message)
|
||||||
|
|
||||||
# ?XXX WAIT, why do we not close the local mem chan `._rx_chan` XXX?
|
# ?XXX WAIT, why do we not close the local mem chan `._rx_chan` XXX?
|
||||||
|
|
Loading…
Reference in New Issue