Skip to content
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

Prevent NSLog from crashing if log message contains "%@" sequence #65

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

calinbodnar
Copy link
Contributor

The first parameter of NSLog() is the format string where %@ is interpreted as an Obj-C object argument (expected to have either descriptionWithLocale: func, or description) and expected in the second, vararg, parameter of NSLog().

@philtz
Copy link

philtz commented Nov 5, 2024

@saschpe we have this crash too and looks like a good fix! would be nice to have it in the next Log4k version!

@saschpe saschpe merged commit 903d4d2 into saschpe:main Nov 5, 2024
@saschpe
Copy link
Owner

saschpe commented Nov 5, 2024

Thanks. I'll publish another release soon.

saschpe added a commit that referenced this pull request Nov 5, 2024
Introduced with pull request #65.
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