mirror of https://github.com/zulip/zulip.git
sentry: Pass format arguments to logging.
semgrep 0.23 correctly flags this as a violation of our logging-format rule. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
70bcc7a8e9
commit
f39d4cf1f0
|
@ -97,7 +97,7 @@ def handle_event_payload(event: Dict[str, Any]) -> Tuple[str, str]:
|
||||||
platform_name = event["platform"]
|
platform_name = event["platform"]
|
||||||
syntax_highlight_as = syntax_highlight_as_map.get(platform_name, "")
|
syntax_highlight_as = syntax_highlight_as_map.get(platform_name, "")
|
||||||
if syntax_highlight_as == "": # nocoverage
|
if syntax_highlight_as == "": # nocoverage
|
||||||
logging.info(f"Unknown Sentry platform: {platform_name}")
|
logging.info("Unknown Sentry platform: %s", platform_name)
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
"title": subject,
|
"title": subject,
|
||||||
|
|
Loading…
Reference in New Issue