CLOUDSTACK-8947 - Adding some logging to better understand what's happening with the rules

This commit is contained in:
Wilder Rodrigues 2015-10-13 15:58:29 +02:00
parent 59bd935f3e
commit 80b51a7972

View File

@ -150,6 +150,8 @@ class CsNetfilters(object):
new_rule.set_table(fw[0])
if isinstance(fw[1], int):
new_rule.set_count(fw[1])
logging.debug("Checking if the rule already exists: rule=%s table=%s chain=%s", new_rule.get_rule(), new_rule.get_table(), new_rule.get_chain())
if self.has_rule(new_rule):
logging.debug("Exists: rule=%s table=%s", fw[2], new_rule.get_table())
else: