Log warnings if the server receivers unknown commands.
authorW. Trevor King <wking@tremily.us>
Sun, 27 May 2012 11:58:14 +0000 (07:58 -0400)
committerW. Trevor King <wking@tremily.us>
Sun, 27 May 2012 11:58:14 +0000 (07:58 -0400)
pyassuan/server.py

index 1318a2b465c0f10b4b51dcefe2a0af0688b1d731..1deee4862e79a44e7ea98806ffab4f90ba77ada6 100644 (file)
@@ -115,6 +115,7 @@ class AssuanServer (object):
             handle = getattr(
                 self, '_handle_{}'.format(request.command))
         except AttributeError:
+            self.logger.warn('unknown command: {}'.format(request.command))
             self.send_error_response(
                 _error.AssuanError(message='Unknown command'))
             return