Skip to content

Set the privacy level of string interpolation errors in os_log to private #2124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Aug 30, 2023

If string interpolation results in parsing errors, we create an os_log fault to notify the user about a potential bug. This log message contains the source code with the syntax error, which could be sensitive.

Set the os_log privacy level to private to make sure the source code does not get persisted in logs. It will still show up in the Xcode console.

@ahoppen ahoppen changed the title Set the privacy level of string interpolatione errors in os_log to private Set the privacy level of string interpolation errors in os_log to private Aug 30, 2023
…vate

If string interpolation results in parsing errors, we create an os_log fault to notify the user about a potential bug. This log message contains the source code with the syntax error, which could be sensitive.

Set the os_log privacy level to `private` to make sure the source code does not get persisted in logs. It will still show up in the Xcode console.
@ahoppen ahoppen force-pushed the ahoppen/os-log-privacy branch from 810a10e to fff5b73 Compare August 30, 2023 23:55
@ahoppen
Copy link
Member Author

ahoppen commented Aug 30, 2023

@swift-ci Please test

@ahoppen ahoppen merged commit 29c1564 into swiftlang:main Sep 1, 2023
@ahoppen ahoppen deleted the ahoppen/os-log-privacy branch September 1, 2023 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants