Change the logging of operationcancelled to debug instead of error

THe operation being cancelled is not an error; it's an expected action, since
it happens after the user closes the window.

CURA-8557
This commit is contained in:
Jaime van Kessel 2021-10-29 11:34:11 +02:00
parent afe9c0c633
commit 7e674a18b3

View file

@ -172,7 +172,7 @@ class PackageList(ListModel):
:param error: The error status of the request.
"""
if error == QNetworkReply.NetworkError.OperationCanceledError:
Logger.error("Cancelled request for packages.")
Logger.debug("Cancelled request for packages.")
self._ongoing_request = None
return # Don't show an error about this to the user.
Logger.error("Could not reach Marketplace server.")