Skip to content

Commit

Permalink
improved logs when remote does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
alebastrov committed Dec 21, 2023
1 parent 7d93ea1 commit 4467a95
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ private Result<Object, Throwable> invoke( Method method, Object[] args ) {
} else
throw new RemoteInvocationException( "invocation failed " + this + "#" + service + "@" + method.getName()
+ " code " + response.code()
+ " body '" + response.body().string() + "'" );
+ " body '" + response.body().string() + "'"
+ " message '" + response.message() + "'" );
} catch( HttpTimeoutException | TimeoutException | UncheckedTimeoutException e ) {
LogConsolidated.log( log, Level.WARN, s( 5 ), "timeout invoking " + method.getName() + "#" + this, null );
timeoutMetrics.increment();
Expand Down

0 comments on commit 4467a95

Please sign in to comment.