Skip to content

Fix message printed twice when a throwable is given#32

Open
perqin wants to merge 2 commits into
JumeiRdGroup:masterfrom
perqin:master
Open

Fix message printed twice when a throwable is given#32
perqin wants to merge 2 commits into
JumeiRdGroup:masterfrom
perqin:master

Conversation

@perqin

@perqin perqin commented May 9, 2020

Copy link
Copy Markdown
Contributor

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.

1 participant