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,7 +123,7 @@ class RequestHandler(object):
response.flags |= dns.flags.AA
return response
LOG.debug("Received %(verb)s for %(name)s from %(host)s" %
LOG.debug("Received %(verb)s for %(name)s from %(host)s",
{'verb': "CREATE", 'name': zone_name, 'host': requester})
try:
@ -166,7 +166,7 @@ class RequestHandler(object):
response.set_rcode(dns.rcode.from_text("REFUSED"))
return response
LOG.debug("Received %(verb)s for %(name)s from %(host)s" %
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
@ -218,7 +218,7 @@ class RequestHandler(object):
response.flags |= dns.flags.AA
return response
LOG.debug("Received DELETE for %(name)s from %(host)s" %
LOG.debug("Received DELETE for %(name)s from %(host)s",
{'name': zone_name, 'host': requester})
# Provide an authoritative answer

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