From: W. Trevor King Date: Sun, 27 May 2012 11:58:14 +0000 (-0400) Subject: Log warnings if the server receivers unknown commands. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=02b5547bcba34c1371b74dec643b1fca6b601033;p=pyassuan.git Log warnings if the server receivers unknown commands. --- diff --git a/pyassuan/server.py b/pyassuan/server.py index 1318a2b..1deee48 100644 --- a/pyassuan/server.py +++ b/pyassuan/server.py @@ -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