api: do not log handled errors sent to a client

Those "errors" are already properly handled, and if necessary logged
independently by appropriate function. In some cases, such logs are
misleading (for example QubesNoSuchPropertyError is a normal thing
happening during qvm-ls).

Fixes QubesOS/qubes-issues#3238
This commit is contained in:
Marek Marczykowski-Górecki 2017-11-06 01:13:29 +01:00
parent 31a55dcd18
commit 73c33525a0
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -285,9 +285,6 @@ class QubesDaemonProtocol(asyncio.Protocol):
if self.debug:
self.app.log.exception(msg,
err, src, meth, dest, arg, len(untrusted_payload))
else:
self.app.log.info(msg,
err, src, meth, dest, arg, len(untrusted_payload))
if self.transport is not None:
self.send_exception(err)
self.transport.write_eof()