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

Fix message printed twice when a throwable is given #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

perqin
Copy link
Contributor

@perqin perqin commented May 9, 2020

When calling PLog.level(level).tag(tag).msg("The throwable is %s").throwable(throwable).print() with DefaultFormatter configured, it prints out:

The throwable is The throwable is %sjava.lang.Throwable:...

But the expected result is:

The throwable is java.lang.Throwable:...

This patch fixes the issue.

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.

None yet

1 participant