change log.error to log.exception when handling a network subsriber call failing

This commit is contained in:
Michael Hudson-Doyle 2021-06-02 13:23:44 +12:00
parent 1e294a9915
commit 8848db87cd
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ class NetworkController(BaseNetworkController, SubiquityController):
try: try:
await getattr(client, meth_name).POST(*args) await getattr(client, meth_name).POST(*args)
except aiohttp.ClientError: except aiohttp.ClientError:
log.error("call to %s on %s failed", meth_name, conn.path) log.exception("call to %s on %s failed", meth_name, conn.path)
def _call_clients(self, meth_name, *args): def _call_clients(self, meth_name, *args):
for client, conn, lock in self.clients.values(): for client, conn, lock in self.clients.values():