mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
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:
committed by
Pavel Hrdina
parent
19b0f3f446
commit
2ebbdb2797
@@ -115,9 +115,8 @@ 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)",
|
||||
prettyvm, dev, mp)
|
||||
log.exception("%s: exception mounting %s on %s (ignored)",
|
||||
prettyvm, dev, mp)
|
||||
|
||||
icon = None
|
||||
apps = None
|
||||
@@ -154,7 +153,7 @@ def _perform_inspection(conn, vm): # pragma: no cover
|
||||
apps.append(app)
|
||||
except Exception:
|
||||
log.exception("%s: exception while listing apps (ignored)",
|
||||
prettyvm)
|
||||
prettyvm)
|
||||
|
||||
# Force the libguestfs handle to close right now.
|
||||
del g
|
||||
|
||||
Reference in New Issue
Block a user