From c3b656f016cbade4ff5d8d973ee913c46d4dc1f5 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: May 18 2017 13:08:23 +0000 Subject: Add a little logging for whitelist/blacklist processing. --- diff --git a/freshmaker/handlers/__init__.py b/freshmaker/handlers/__init__.py index d6a0577..460179f 100644 --- a/freshmaker/handlers/__init__.py +++ b/freshmaker/handlers/__init__.py @@ -112,12 +112,16 @@ class BaseHandler(object): try: whitelist = whitelist_rules.get(artifact_type, []) if whitelist and not any([match_rule(name, branch, rule) for rule in whitelist]): + log.debug('name=%r, branch=%r, type=%r is not whitelisted.', + name, branch, artifact_type) in_whitelist = False # only need to check blacklist when it is in whitelist first if in_whitelist: blacklist = blacklist_rules.get(artifact_type, []) if blacklist and any([match_rule(name, branch, rule) for rule in blacklist]): + log.debug('name=%r, branch=%r, type=%r is blacklisted.', + name, branch, artifact_type) in_blacklist = True except re.error as exc: