From 02b5547bcba34c1371b74dec643b1fca6b601033 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 27 May 2012 07:58:14 -0400 Subject: [PATCH] Log warnings if the server receivers unknown commands. --- pyassuan/server.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.26.2