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
Этот коммит содержится в:
Marek Marczykowski-Górecki 2017-11-06 01:13:29 +01:00
родитель 31a55dcd18
Коммит 73c33525a0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 063938BA42CFA724

Просмотреть файл

@ -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()