Skip to content

Commit

Permalink
Fix log wording
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed May 2, 2024
1 parent c41d053 commit 8bc85f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/qz/ws/substitutions/Substitutions.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -345,7 +345,7 @@ private class Rule {

@Override
public String toString() {
return caseSensitive ? "case-sensitive " : "" + "for: " + match + ", use: " + replace;
return "for: " + match + ", use: " + replace;
}
}
}

0 comments on commit 8bc85f5

Please sign in to comment.