home · contact · privacy
Remove clutter of message-set debug logging.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 22 Sep 2025 12:31:09 +0000 (14:31 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 22 Sep 2025 12:31:09 +0000 (14:31 +0200)
ircplom/client_tui.py
test.txt

index 3dd96b39248fdc62bf39bcc6bd887d4cc63c3b28..25a6470008a0a45e790b334d304837a481bf185d 100644 (file)
@@ -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)
index 04ebd3a2efcc6a84d068784212b2f42b51bc0af2..8ebd24b389b91fc66eab277ba3b2346ab4a348b8 100644 (file)
--- a/test.txt
+++ b/test.txt
 
 # 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 :?
 
 
 # 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
 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
 
 # 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
 
 > /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 <