Tweak a couple more log message fmts
parent
d4155396bf
commit
5dfff3f75a
|
@ -1902,7 +1902,7 @@ class Context:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
log.runtime(
|
log.runtime(
|
||||||
f'Delivering msg from IPC ctx:\n'
|
f'Delivering msg from IPC ctx:\n\n'
|
||||||
f'<= {from_uid}\n'
|
f'<= {from_uid}\n'
|
||||||
f' |_ {nsf}()\n\n'
|
f' |_ {nsf}()\n\n'
|
||||||
|
|
||||||
|
|
|
@ -377,14 +377,17 @@ class MsgStream(trio.abc.Channel):
|
||||||
# await rx_chan.aclose()
|
# await rx_chan.aclose()
|
||||||
|
|
||||||
if not self._eoc:
|
if not self._eoc:
|
||||||
log.cancel(
|
message: str = (
|
||||||
'Stream closed by self before it received an EoC?\n'
|
f'Context stream closed by {self._ctx.side!r}\n'
|
||||||
'Setting eoc manually..\n..'
|
|
||||||
)
|
|
||||||
self._eoc: bool = trio.EndOfChannel(
|
|
||||||
f'Context stream closed by self({self._ctx.side})\n'
|
|
||||||
f'|_{self}\n'
|
f'|_{self}\n'
|
||||||
)
|
)
|
||||||
|
log.cancel(
|
||||||
|
'Stream self-closed before receiving EoC\n\n'
|
||||||
|
+
|
||||||
|
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?
|
||||||
# => NO, DEFINITELY NOT! <=
|
# => NO, DEFINITELY NOT! <=
|
||||||
# if we're a bi-dir ``MsgStream`` BECAUSE this same
|
# if we're a bi-dir ``MsgStream`` BECAUSE this same
|
||||||
|
|
Loading…
Reference in New Issue