Merge "Improve logging in designate.agent"

This commit is contained in:
Jenkins 2016-01-15 15:53:15 +00:00 committed by Gerrit Code Review
commit f4d0d38c30
2 changed files with 6 additions and 8 deletions

View File

@ -123,8 +123,8 @@ class RequestHandler(object):
response.flags |= dns.flags.AA
return response
LOG.debug("Received %(verb)s for %(name)s from %(host)s" %
{'verb': "CREATE", 'name': zone_name, 'host': requester})
LOG.debug("Received %(verb)s for %(name)s from %(host)s",
{'verb': "CREATE", 'name': zone_name, 'host': requester})
try:
zone = dnsutils.do_axfr(zone_name, self.masters,
@ -166,8 +166,8 @@ class RequestHandler(object):
response.set_rcode(dns.rcode.from_text("REFUSED"))
return response
LOG.debug("Received %(verb)s for %(name)s from %(host)s" %
{'verb': "NOTIFY", 'name': zone_name, 'host': requester})
LOG.debug("Received %(verb)s for %(name)s from %(host)s",
{'verb': "NOTIFY", 'name': zone_name, 'host': requester})
# According to RFC we should query the server that sent the NOTIFY
# TODO(Tim): Reenable this when it makes more sense
@ -218,8 +218,8 @@ class RequestHandler(object):
response.flags |= dns.flags.AA
return response
LOG.debug("Received DELETE for %(name)s from %(host)s" %
{'name': zone_name, 'host': requester})
LOG.debug("Received DELETE for %(name)s from %(host)s",
{'name': zone_name, 'host': requester})
# Provide an authoritative answer
response.flags |= dns.flags.AA

View File

@ -14,7 +14,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_config import cfg
from oslo_log import log as logging
from designate import utils
from designate import dnsutils
@ -23,7 +22,6 @@ from designate.agent import handler
from designate.backend import agent_backend
LOG = logging.getLogger(__name__)
CONF = cfg.CONF