mirror of https://github.com/zulip/zulip.git
log-search: Remove old /report/ endpoints.
This commit is contained in:
parent
28e4fe1820
commit
9ca0cd9bbd
|
@ -98,7 +98,7 @@ def parser() -> argparse.ArgumentParser:
|
||||||
)
|
)
|
||||||
filtering.add_argument("--presence", "-p", help="Include presence paths", action="store_true")
|
filtering.add_argument("--presence", "-p", help="Include presence paths", action="store_true")
|
||||||
filtering.add_argument(
|
filtering.add_argument(
|
||||||
"--report", "-r", help="Include timing report paths", action="store_true"
|
"--report", "-r", help="Include Sentry reporting paths", action="store_true"
|
||||||
)
|
)
|
||||||
filtering.add_argument(
|
filtering.add_argument(
|
||||||
"--no-other", "-O", help="Exclude paths not explicitly included", action="store_true"
|
"--no-other", "-O", help="Exclude paths not explicitly included", action="store_true"
|
||||||
|
@ -364,7 +364,7 @@ def passes_filters(
|
||||||
return args.messages
|
return args.messages
|
||||||
elif path in ("/api/v1/users/me/presence", "/json/users/me/presence"):
|
elif path in ("/api/v1/users/me/presence", "/json/users/me/presence"):
|
||||||
return args.presence
|
return args.presence
|
||||||
elif path.startswith(("/api/v1/report/", "/json/report/")) or path == "/error_tracing":
|
elif path == "/error_tracing":
|
||||||
return args.report
|
return args.report
|
||||||
else:
|
else:
|
||||||
return not args.no_other
|
return not args.no_other
|
||||||
|
|
Loading…
Reference in New Issue