From b2264093d843ba8ff9c04d7b4a69537f62853cf4 Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Thu, 5 Jan 2017 15:39:38 +0200 Subject: [PATCH] Use lower logging priority by default --- pupy/network/lib/picocmd/server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pupy/network/lib/picocmd/server.py b/pupy/network/lib/picocmd/server.py index 6c2da14d..5155e077 100644 --- a/pupy/network/lib/picocmd/server.py +++ b/pupy/network/lib/picocmd/server.py @@ -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