]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/prometheus: don't store exception as e
authorKen Dreyer <kdreyer@redhat.com>
Thu, 3 Dec 2020 17:48:06 +0000 (10:48 -0700)
committerKen Dreyer <kdreyer@redhat.com>
Thu, 3 Dec 2020 20:21:15 +0000 (13:21 -0700)
commita17c603effd3367dc64c87a1d6c53d6d3d794fc7
tree72b3c385ebb5e6ca2255ca611cbd3f34e89154a0
parent9ce1f20eb7ddd0cc7dbe5083caf9e9a899dba686
mgr/prometheus: don't store exception as e

Python's logging module's exception() method will log the full exception
and stack trace for us, so we do not need to store the exception in the
"e" variable here.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
src/pybind/mgr/prometheus/module.py