From 8bc85f5598255368801c249291824ef7f420ad39 Mon Sep 17 00:00:00 2001 From: Tres Finocchiaro Date: Thu, 2 May 2024 01:11:31 -0400 Subject: [PATCH] Fix log wording --- src/qz/ws/substitutions/Substitutions.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } } }