Commit 6a67a6f
committed
Fix Darwin historical logs redaction using public format string
os_log redacts dynamic strings by default in historical logs (viewed via log show) for privacy. This change updates
DarwinKLogger
to use %{public}s as the fixed format string and passes the message as an argument, explicitly marking it as public data to prevent redaction.
Fixes #5881 parent aa51a0d commit 6a67a6f
1 file changed
Lines changed: 3 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
0 commit comments