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:
parent
31a55dcd18
commit
73c33525a0
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user