Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
When system logging is enabled (with ``config.use_system_logger``, messages
are now tagged as public. This allows the macOS 26 system logger to view
messages without special configuration.
4 changes: 3 additions & 1 deletion 4 Python/pylifecycle.c
Original file line number Diff line number Diff line change
Expand Up @@ -3327,7 +3327,9 @@ apple_log_write_impl(PyObject *self, PyObject *args)

// Pass the user-provided text through explicit %s formatting
// to avoid % literals being interpreted as a formatting directive.
os_log_with_type(OS_LOG_DEFAULT, logtype, "%s", text);
// Using {public} ensures "dynamic" string messages are visible
// in the log without special configuration.
os_log_with_type(OS_LOG_DEFAULT, logtype, "%{public}s", text);
Py_RETURN_NONE;
}

Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.