From 20543f4b5dc641741c078c15dcd02413d135419c Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 22 Sep 2025 14:31:09 +0200 Subject: [PATCH] Remove clutter of message-set debug logging. --- ircplom/client_tui.py | 2 +- test.txt | 22 ++-------------------- 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/ircplom/client_tui.py b/ircplom/client_tui.py index 3dd96b3..25a6470 100644 --- a/ircplom/client_tui.py +++ b/ircplom/client_tui.py @@ -381,7 +381,7 @@ class _ClientWindowsManager: content = str(nuh) if transform == 'NUH' else nuh.nick msg += content self.log(msg, **log_kwargs) - else: + elif not update.full_path == ('message',): log_path = ':'.join(update.full_path) if result is None: self.log(f'{log_path} cleared', **log_kwargs) diff --git a/test.txt b/test.txt index 04ebd3a..8ebd24b 100644 --- a/test.txt +++ b/test.txt @@ -70,17 +70,11 @@ # expect some NOTICE and PING to process/reply during initiation 0:2 < :*.?.net NOTICE * :*** Looking up your ident... -1,2 $ message set to: [N| server||*** Looking up your ident...] 3 <<< [ server] *** Looking up your ident... -1,2 $ message set to: [P|||] 0:2 < :*.?.net NOTICE * :*** Looking up your hostname... -1,2 $ message set to: [N| server||*** Looking up your hostname...] 3 <<< [ server] *** Looking up your hostname... -1,2 $ message set to: [P|||] 0:2 < :*.?.net NOTICE * :*** Found your hostname (baz.bar.foo) -1,2 $ message set to: [N| server||*** Found your hostname (baz.bar.foo)] 3 <<< [ server] *** Found your hostname (baz.bar.foo) -1,2 $ message set to: [P|||] 0:2 < PING :? 2 > PONG :? @@ -160,9 +154,7 @@ # handle bot query NOTICE 0:2 < :SaslServ!SaslServ@services.bar.baz NOTICE foo1 :Last login from ~foobarbaz@foo.bar.baz on Jan 1 22:00:00 2021 +0000. -1,2 $ message set to: [N|SaslServ||Last login from ~foobarbaz@foo.bar.baz on Jan 1 22:00:00 2021 +0000.] 4 <<< [SaslServ] Last login from ~foobarbaz@foo.bar.baz on Jan 1 22:00:00 2021 +0000. -1,2 $ message set to: [P|||] # check difference in available commands when switching to client window > /join #test @@ -234,9 +226,7 @@ 0:2 < :bar!~bar@bar.bar PRIVMSG #test :hi there 1,2 $ users:1:user set to: [~bar] 1,2 $ users:1:host set to: [bar.bar] -1,2 $ message set to: [P|bar|#test|hi there] 5 < [bar] hi there -1,2 $ message set to: [P|||] # check _changing_ TOPIC message is communicated to channel window 0:2 < :bar!~bar@bar.bar TOPIC #test :foo bar baz @@ -270,25 +260,17 @@ # handle query window with known user 0:2 < :baz!~baz@baz.baz PRIVMSG foo1 :hi there -1,2 $ message set to: [P|baz||hi there] 7 < [baz] hi there -1,2 $ message set to: [P|||] > /privmsg baz hello, how is it going 2 > PRIVMSG baz :hello, how is it going -1,2 $ message set to: [P||baz|hello, how is it going] 7 > [foo1] hello, how is it going -1,2 $ message set to: [P|||] 0:2 < :baz!~baz@baz.baz PRIVMSG foo1 :fine! -1,2 $ message set to: [P|baz||fine!] 7 < [baz] fine! -1,2 $ message set to: [P|||] # handle failure to query absent user > /privmsg barbar hello! 2 > PRIVMSG barbar :hello! -1,2 $ message set to: [P||barbar|hello!] 8 > [foo1] hello! -1,2 $ message set to: [P|||] 0:2 < :*.?.net 401 foo1 barbar :No such nick/channel 8 !$ barbar not online @@ -453,8 +435,8 @@ > /reconnect repeat 63:65 3,4,5,6,7,8 $ CONNECTED -repeat 66:166 -repeat 177:387 +repeat 66:158 +repeat 169:379 > /quit 0 < -- 2.30.2