fix indentation of multiline log.exception() invocations

Commit f107e39989 ("Switch to more traditional logging structure",
2019-06-17) replaced "logging.exception" with "log.exception", effectively
shifting the argument lists 4 characters to the left. The second and
further lines of multiline invocations were not accordingly unindented,
however, which ended up setting a suboptimal precedent as well. Unindent
those lines now.

Reported-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
Laszlo Ersek 2023-08-30 10:03:15 +02:00 committed by Pavel Hrdina
parent 19b0f3f446
commit 2ebbdb2797
4 changed files with 6 additions and 8 deletions

View File

@ -427,8 +427,7 @@ class vmmHostStorage(vmmGObjectUI):
if not namestr:
namestr = None
except Exception: # pragma: no cover
log.exception("Failed to determine if storage volume in "
"use.")
log.exception("Failed to determine if storage volume in use.")
sensitive = True
if self._vol_sensitive_cb:

View File

@ -115,8 +115,7 @@ def _perform_inspection(conn, vm): # pragma: no cover
g.mount_ro(dev, mp)
filesystems_mounted = True
except Exception:
log.exception("%s: exception mounting %s on %s "
"(ignored)",
log.exception("%s: exception mounting %s on %s (ignored)",
prettyvm, dev, mp)
icon = None