Merge "Improve logging in designate.agent"
This commit is contained in:
commit
f4d0d38c30
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user