X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fpybind%2Fmgr%2Frestful%2Fhooks.py;fp=src%2Fceph%2Fsrc%2Fpybind%2Fmgr%2Frestful%2Fhooks.py;h=3fd244aa85e26a9be2e345cf93360283f23fea16;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/pybind/mgr/restful/hooks.py b/src/ceph/src/pybind/mgr/restful/hooks.py new file mode 100644 index 0000000..3fd244a --- /dev/null +++ b/src/ceph/src/pybind/mgr/restful/hooks.py @@ -0,0 +1,9 @@ +from pecan.hooks import PecanHook + +import traceback + +import module + +class ErrorHook(PecanHook): + def on_error(self, stat, exc): + module.instance.log.error(str(traceback.format_exc()))