Please sign in to comment.
Debug: Only print queued lines if they are really just queued
Previously, every line that was forwarded to the IRCd was printed twice in debug mode. Once when it got added to the send queue and a second time when it was actually sent. However, most of the time this queue is empty and thus the two events happened at approximately the same time. Thus, this patch now changes the debug output. Lines are only printed extra if they really have to wait in the queue for a while before they can be sent out. This has the positive effect of making the debug output more readable, because it is shorter and less repetitive and it makes it more obvious when znc actively throttles the traffic that is sent out. Signed-off-by: Uli Schlachter <firstname.lastname@example.org>
- Loading branch information...