Skip to content

Commit

Permalink
JerseyInvocation should override toString()
Browse files Browse the repository at this point in the history
Override toString() with a sensible implementation.
So if you log a given JerseyInvocation object at least the request method and
URI of the contained requestContext is printed.

See issue #4270

Signed-off-by: Thomas Meyer <thomas.mey@web.de>
  • Loading branch information
Thomas Meyer authored and jansupol committed May 11, 2020
1 parent 94fc06d commit 484e7f6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1001,4 +1001,9 @@ private WebApplicationException createExceptionForFamily(final Response response
ClientRequest request() {
return requestContext;
}

@Override
public String toString() {
return "JerseyInvocation [" + request().getMethod() + ' ' + request().getUri() + "]";
}
}

0 comments on commit 484e7f6

Please sign in to comment.