]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/prometheus: don't store exception as e 38334/head
authorKen Dreyer <kdreyer@redhat.com>
Thu, 3 Dec 2020 17:48:06 +0000 (10:48 -0700)
committerBoris Ranto <branto@redhat.com>
Sat, 5 Dec 2020 14:02:27 +0000 (15:02 +0100)
commitb2438fda33d48be4c4fd90e5c64483b8df0f750a
treec642ac3d57debb1ba0a74a37abfefd43e827ec9c
parent91fd38925a2d9dfe858ac848b1f8a4a05a762988
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>
(cherry picked from commit a17c603effd3367dc64c87a1d6c53d6d3d794fc7)
src/pybind/mgr/prometheus/module.py