diff options
| author | YDBot <[email protected]> | 2026-06-26 11:22:40 +0000 |
|---|---|---|
| committer | YDBot <[email protected]> | 2026-06-26 11:22:40 +0000 |
| commit | e78a9f66eeb2ec3ccd8712bea29b3e7197519df0 (patch) | |
| tree | 64d07952278d008f8b3947089c252ec5a346cab4 /contrib/tools/python3/Python/pylifecycle.c | |
| parent | e5eebd69b54a5462d430c00b511a45f2f34b234a (diff) | |
| parent | ee2100f4ac5f28a7762a25c7c05750348a098df6 (diff) | |
Sync branches 260626-1120
Diffstat (limited to 'contrib/tools/python3/Python/pylifecycle.c')
| -rw-r--r-- | contrib/tools/python3/Python/pylifecycle.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/tools/python3/Python/pylifecycle.c b/contrib/tools/python3/Python/pylifecycle.c index 8ba9b2bd006..fbbc38bc8e1 100644 --- a/contrib/tools/python3/Python/pylifecycle.c +++ b/contrib/tools/python3/Python/pylifecycle.c @@ -2976,7 +2976,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; } |
