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 <[email protected]>
  • Loading branch information
Thomas Meyer authored and thomasmey committed Apr 19, 2020
1 parent 950ce6c commit e9740b1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -994,4 +994,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 e9740b1

Please sign in to comment.