diff --git a/src/qz/ws/substitutions/Substitutions.java b/src/qz/ws/substitutions/Substitutions.java index deb383ea..e119c48e 100644 --- a/src/qz/ws/substitutions/Substitutions.java +++ b/src/qz/ws/substitutions/Substitutions.java @@ -65,10 +65,10 @@ public JSONObject replace(InputStream in) throws IOException, JSONException { public JSONObject replace(JSONObject base) throws JSONException { for(Rule rule : rules) { if (find(base, rule.match, rule.caseSensitive)) { - log.debug("Matched JSON substitution rule: {}", rule); + log.debug("Matched {}JSON substitution rule: {}", rule.caseSensitive ? "case-sensitive " : "", rule); replace(base, rule.replace); } else { - log.debug("Unable to match JSON substitution rule: {}", rule); + log.debug("Unable to match {}JSON substitution rule: {}", rule.caseSensitive ? "case-sensitive " : "", rule); } } return base; @@ -345,7 +345,7 @@ private class Rule { @Override public String toString() { - return caseSensitive ? "case-sensitive " : "" + "for: " + match + ", use: " + replace; + return "for: " + match + ", use: " + replace; } } }