Skip to content

Commit

Permalink
Improved resilience
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Aug 18, 2022
1 parent 003b4d4 commit 663244c
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ public ResponseLookupRoutingInformationType queryIAL (@Nonnull @Nonempty final I
sATUCode
: ""));

LOGGER.info ("Querying IAL via " + sDestURL);
if (LOGGER.isInfoEnabled ())
LOGGER.info ("Querying IAL via '" + sDestURL + "'");

try (final HttpClientManager aHCM = HttpClientManager.create (new DcngHttpClientSettings ()))
{
Expand All @@ -99,7 +100,11 @@ public ResponseLookupRoutingInformationType queryIAL (@Nonnull @Nonempty final I
.getAsHttpHeaderValue ());
final byte [] aResult = aHCM.execute (aGet, new ResponseHandlerByteArray ());

LOGGER.info ("Queried IAL. Got " + ArrayHelper.getSize (aResult) + " bytes back");
if (LOGGER.isInfoEnabled ())
LOGGER.info ("Queried IAL. Got " + ArrayHelper.getSize (aResult) + " bytes back");

if (aResult == null)
return null;

final ResponseLookupRoutingInformationType ret = IALMarshaller.responseLookupRoutingInformationMarshaller ()
.setValidationEventHandlerFactory (x -> new WrappedCollectingValidationEventHandler (aErrorList).andThen (x))
Expand Down

0 comments on commit 663244c

Please sign in to comment.