Skip to content

Commit

Permalink
Reduce logging level in UrlParser
Browse files Browse the repository at this point in the history
  • Loading branch information
poutsma committed May 2, 2024
1 parent 8f3b748 commit 7ccd4ce
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,15 @@ else if (isTabOrNL) {
}

private void setState(State newState) {
if (logger.isDebugEnabled()) {
if (logger.isTraceEnabled()) {
String c;
if (this.pointer < this.input.length()) {
c = Character.toString(this.input.charAt(this.pointer));
}
else {
c = "EOF";
}
logger.debug("Changing state from " + this.state + " to " + newState + " (cur: " + c + " prev: " + this.previousState + ")");
logger.trace("Changing state from " + this.state + " to " + newState + " (cur: " + c + " prev: " + this.previousState + ")");
}
// EXTRA: we keep the previous state, to ensure that the parser can escape from malformed URI templates
this.previousState = this.state;
Expand Down Expand Up @@ -2847,7 +2847,6 @@ public PathSegments(List<PathSegment> segments) {

@Override
public void append(String segment) {
logger.debug("Adding \"" + segment + "\"");
this.segments.add(new PathSegment(segment));
}

Expand Down

0 comments on commit 7ccd4ce

Please sign in to comment.