From f45a8bebf2de0fe1f65bf4bf64e28a9ee13c4546 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 27 Nov 2012 10:11:54 -0500 Subject: [PATCH] zephyr_mirror: Don't display/log some useless "Skipping" notices. In this case, if we're configured to not forward personals, there's no point in logging a decision not to forward one. (imported from commit 62c37591c6a70afb6235de626b0c6a3502cbcb27) --- bots/zephyr_mirror_backend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bots/zephyr_mirror_backend.py b/bots/zephyr_mirror_backend.py index ebde0a4..cff723d 100755 --- a/bots/zephyr_mirror_backend.py +++ b/bots/zephyr_mirror_backend.py @@ -257,6 +257,8 @@ def process_notice(notice, log): is_personal = True # Drop messages not to the listed subscriptions + if is_personal and not options.forward_personals: + return if (zephyr_class not in current_zephyr_subs) and not \ (is_personal and options.forward_personals): logger.debug("Skipping ... %s/%s/%s" %