mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
report_error: Remove API endpoint for client error reporting.
This commit is contained in:
committed by
Tim Abbott
parent
cb7bc1b7b9
commit
e536a14b61
@@ -126,7 +126,6 @@ EMAIL_GATEWAY_EXTRA_PATTERN_HACK: Optional[str] = None
|
||||
|
||||
# Error reporting
|
||||
ERROR_REPORTING = True
|
||||
BROWSER_ERROR_REPORTING = False
|
||||
LOGGING_SHOW_MODULE = False
|
||||
LOGGING_SHOW_PID = False
|
||||
|
||||
|
||||
@@ -652,8 +652,6 @@ SOCIAL_AUTH_SAML_SUPPORT_CONTACT = {
|
||||
## Controls whether or not error reports (tracebacks) are emailed to the
|
||||
## server administrators.
|
||||
# ERROR_REPORTING = True
|
||||
## For frontend (JavaScript) tracebacks
|
||||
# BROWSER_ERROR_REPORTING = False
|
||||
|
||||
## Controls the DSN used to report errors to Sentry.io
|
||||
# SENTRY_DSN = "https://aaa@bbb.ingest.sentry.io/1234"
|
||||
|
||||
@@ -132,7 +132,6 @@ from zerver.views.registration import (
|
||||
)
|
||||
from zerver.views.report import (
|
||||
report_csp_violations,
|
||||
report_error,
|
||||
report_narrow_times,
|
||||
report_send_times,
|
||||
report_unnarrow_times,
|
||||
@@ -491,11 +490,6 @@ v1_api_and_json_patterns = [
|
||||
# These endpoints are for internal error/performance reporting
|
||||
# from the browser to the web app, and we don't expect to ever
|
||||
# include in our API documentation.
|
||||
rest_path(
|
||||
"report/error",
|
||||
# Logged-out browsers can hit this endpoint, for portico page JS exceptions.
|
||||
POST=(report_error, {"allow_anonymous_user_web", "intentionally_undocumented"}),
|
||||
),
|
||||
rest_path("report/send_times", POST=(report_send_times, {"intentionally_undocumented"})),
|
||||
rest_path(
|
||||
"report/narrow_times",
|
||||
|
||||
Reference in New Issue
Block a user