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

Fallback behavior for inadvertent string formatters in log messages #9

Closed
wants to merge 3 commits into from

Conversation

@josefdlange
Copy link

@josefdlange josefdlange commented May 8, 2016

Fixes #8

If we get a java.util.MissingFormatArgumentException, we just throw the message to the logger as-is and forget about trying to format any args into it. It's suboptimal behavior if you actually passed format arguments, but also it doesn't crash the app in the converse case.

@josefdlange
Copy link
Author

@josefdlange josefdlange commented May 23, 2016

Bumping my own PR -- hope you see this and can merge it in.

@tony19
Copy link
Contributor

@tony19 tony19 commented May 24, 2016

Sorry for the late reply. This patch is obviated by my upcoming changes (not yet published), where I've upgraded to the newest Timber release, which handles arg-formatting before it even gets to the Timber client. I'll create a unit test for this bug.

I'll close this issue once I merge.

@tony19
Copy link
Contributor

@tony19 tony19 commented Jun 24, 2017

Handled in timber-loggly-1.0.2

@tony19 tony19 closed this Jun 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.