Use lower logging priority by default

This commit is contained in:
Oleksii Shevchuk 2017-01-05 15:39:38 +02:00
parent e2f25223b9
commit b2264093d8
1 changed files with 3 additions and 3 deletions

View File

@ -293,7 +293,7 @@ class DnsCommandServerHandler(BaseResolver):
elif isinstance(command, Ack) and (session is not None):
self.on_keep_alive(session.system_info)
if command.amount > len(session.commands):
logging.error('ACK: invalid amount of commands: {} > {}'.format(
logging.info('ACK: invalid amount of commands: {} > {}'.format(
command.amount, len(session.commands)))
session.commands = session.commands[command.amount:]
return [Ack()]
@ -353,12 +353,12 @@ class DnsCommandServerHandler(BaseResolver):
request, session, nonce = self._q_page_decoder(qname)
if session and session.last_nonce:
if nonce < session.last_nonce:
logging.error('Ignore nonce from past: {} < {}'.format(
logging.info('Ignore nonce from past: {} < {}'.format(
nonce, session.last_nonce))
reply.header.rcode = RCODE.NXDOMAIN
return reply
elif session.last_nonce == nonce and session.last_qname != qname:
logging.error('Last nonce but different qname: {} != {}'.format(
logging.info('Last nonce but different qname: {} != {}'.format(
session.last_qname, qname))
reply.header.rcode = RCODE.NXDOMAIN
return reply