From 86e09a80f454e8999fab009454ee6dd8fe6bc311 Mon Sep 17 00:00:00 2001 From: Guillermo Rodriguez Date: Thu, 17 Apr 2025 12:08:16 -0300 Subject: [PATCH] Log warning instead of exception on pubsub cancelled --- tractor/ipc/_ringbuf/_pubsub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tractor/ipc/_ringbuf/_pubsub.py b/tractor/ipc/_ringbuf/_pubsub.py index 4b386463..6a33e42a 100644 --- a/tractor/ipc/_ringbuf/_pubsub.py +++ b/tractor/ipc/_ringbuf/_pubsub.py @@ -635,7 +635,7 @@ async def open_pub_channel_at( yield except trio.Cancelled: - log.exception( + log.warning( 'open_pub_channel_at got cancelled!\n' f'\tactor_name = {actor_name}\n' f'\ttoken = {token}\n' @@ -697,7 +697,7 @@ async def open_sub_channel_at( yield except trio.Cancelled: - log.exception( + log.warning( 'open_sub_channel_at got cancelled!\n' f'\tactor_name = {actor_name}\n' f'\ttoken = {token}\n'