]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/prometheus: don't store exception as e 38333/head
authorKen Dreyer <kdreyer@redhat.com>
Thu, 3 Dec 2020 17:48:06 +0000 (10:48 -0700)
committerBoris Ranto <branto@redhat.com>
Thu, 28 Jan 2021 14:54:24 +0000 (15:54 +0100)
commit02fd614bfc80e0aaf72fcf3932f736d01386e76b
treeb44cde59bd5a40d0724be58b454faaa7f4c1ef39
parent32e5907d8c26b9e0bc7dbf8e4c15215164dcb8f0
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