Fix logging of expression.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 17 Apr 2011 10:16:44 +0000 (12:16 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 17 Apr 2011 10:16:44 +0000 (12:16 +0200)
src/main/java/net/pterodactylus/sone/web/SearchPage.java

index 94b296c..74bfd10 100644 (file)
@@ -192,7 +192,7 @@ public class SearchPage extends SoneTemplatePage {
         * @return The score of the expression
         */
        private double calculateScore(List<Phrase> phrases, String expression) {
-               logger.log(Level.FINEST, "Calculating Score for “" + expression + "”…");
+               logger.log(Level.FINEST, "Calculating Score for “%s”…", expression);
                double optionalHits = 0;
                double requiredHits = 0;
                int forbiddenHits = 0;