Skip to content

Commit

Permalink
adding time unit to times logged
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneha Gunta committed Sep 10, 2018
1 parent 1a75b04 commit 9c93bc3
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -311,7 +311,7 @@ public <T> T callSvcMethod(final FacadeOperation facadeOperation, final boolean
int legacyCallTookMS = 0;
if (shouldSource(facadeOperation)) {
// perform operation in oracle, synchronously
log.debug("Calling legacy {}.{}", implementationName, methodName);
log.info("Calling legacy {}.{}", implementationName, methodName);
Method method = legacySvc.getClass().getMethod(methodName, types);
Timer source = new Timer("source." + methodName);
try {
Expand All @@ -330,13 +330,13 @@ public <T> T callSvcMethod(final FacadeOperation facadeOperation, final boolean
}
} finally {
legacyCallTookMS = (int) source.complete();
log.info("legacy call for {}.{} took: {} to complete ", implementationName, methodName,
log.info("Legacy call time: {}.{} took: {}ms to complete ", implementationName, callStringifier,
legacyCallTookMS);
}
}

if (shouldDestination(facadeOperation)) {
log.debug("Calling lightblue {}.{}", implementationName, methodName);
log.info("Calling lightblue {}.{}", implementationName, methodName);

int destinationCallTimeout = (int) Math.max(timeoutConfiguration.getTimeoutMS(methodName, facadeOperation), legacyCallTookMS);

Expand Down

0 comments on commit 9c93bc3

Please sign in to comment.