'Logs javascript errors from the web interface.'

@cherrypy.expose
@requireAuth()
def log_js_errors(self, page, message, file, line, **kwargs):

    logger.error((u'WebUI    ::    /%s    :    %s.    (%s:%s)' % (page.rpartition('/')[(-1)], message, file.rpartition('/')[(-1)].partition('?')[0], line)))
    return 'js    error    logged.'
