]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr: log module name before PyErr_Print()
authorTim Serong <tserong@suse.com>
Fri, 24 Mar 2017 13:36:27 +0000 (14:36 +0100)
committerKefu Chai <kchai@redhat.com>
Fri, 21 Apr 2017 06:17:09 +0000 (14:17 +0800)
commit3d3ee4bf768b4aaa3252f06c299cfee9fdb28148
tree976d2d578bd0c74249fe6ac89338f9d30738abd7
parentf50d9f799dec8f1212253c296efc284628edccba
mgr: log module name before PyErr_Print()

If an exception is raised in any of the python module functions
invoked by mgr (for example, ImportError if rest_framework isn't
available when serve() in called in the rest module), print the
module name along with the failed method name.

This commit also fixes what looks to me like a missed call to
PyGILState_Release() in the failure case in MgrPyModule::serve().

Signed-off-by: Tim Serong <tserong@suse.com>
src/mgr/MgrPyModule.cc