From: Ricardo Marques Date: Mon, 4 Jun 2018 21:21:49 +0000 (+0100) Subject: mgr/dashboard: Stacktrace is optional on 'js-error' endpoint X-Git-Tag: v14.0.1~1189^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F22402%2Fhead;p=ceph.git mgr/dashboard: Stacktrace is optional on 'js-error' endpoint Signed-off-by: Ricardo Marques --- diff --git a/src/pybind/mgr/dashboard/controllers/logging.py b/src/pybind/mgr/dashboard/controllers/logging.py index f92fc2bde3a0..33c0558f0016 100644 --- a/src/pybind/mgr/dashboard/controllers/logging.py +++ b/src/pybind/mgr/dashboard/controllers/logging.py @@ -6,5 +6,5 @@ from .. import logger class Logging(BaseController): @Endpoint('POST', path='js-error') - def jsError(self, url, message, stack): + def jsError(self, url, message, stack=None): logger.error('frontend error (%s): %s\n %s\n', url, message, stack)