]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/controllers/frontend_logging.py
import ceph 16.2.7
[ceph.git] / ceph / src / pybind / mgr / dashboard / controllers / frontend_logging.py
CommitLineData
9f95a23c
TL
1from __future__ import absolute_import
2
3import logging
4
a4b75251 5from . import BaseController, Endpoint, UIRouter
9f95a23c
TL
6
7logger = logging.getLogger('frontend.error')
8
9
a4b75251 10@UIRouter('/logging', secure=False)
9f95a23c
TL
11class FrontendLogging(BaseController):
12
13 @Endpoint('POST', path='js-error')
14 def jsError(self, url, message, stack=None): # noqa: N802
15 logger.error('(%s): %s\n %s\n', url, message, stack)