From d40b16b5a798e795ceb3b6a09dda77ec2f800e58 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 22 Aug 2019 10:50:03 +0200 Subject: [PATCH] Fix log message format in Roster: s/{}/{0}/ The MessageFormat used by the JUL Logger requires integers between the curly brackets (unlike SLF4J). --- .../src/main/java/org/jivesoftware/smack/roster/Roster.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java b/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java index 73486cd12..04e2dd8e9 100644 --- a/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java +++ b/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java @@ -1620,7 +1620,7 @@ public final class Roster extends Manager { @Override public void onSuccess(IQ packet) { final XMPPConnection connection = connection(); - LOGGER.log(Level.FINE, "RosterResultListener received {}", packet); + LOGGER.log(Level.FINE, "RosterResultListener received {0}", packet); Collection addedEntries = new ArrayList<>(); Collection updatedEntries = new ArrayList<>(); Collection deletedEntries = new ArrayList<>();