projects
/
pyassuan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab93623
)
Log warnings if the server receivers unknown commands.
author
W. Trevor King
<wking@tremily.us>
Sun, 27 May 2012 11:58:14 +0000
(07:58 -0400)
committer
W. Trevor King
<wking@tremily.us>
Sun, 27 May 2012 11:58:14 +0000
(07:58 -0400)
pyassuan/server.py
patch
|
blob
|
history
diff --git
a/pyassuan/server.py
b/pyassuan/server.py
index 1318a2b465c0f10b4b51dcefe2a0af0688b1d731..1deee4862e79a44e7ea98806ffab4f90ba77ada6 100644
(file)
--- 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