Changed and clarified some messages from error to warning or info.
The conditions were not errors.
Changed REST abstract class exception handling to differentiate
between REST Server not responding and invocation exception.
Change-Id: I7349f1d0c4fa3ceabfe1d7c1c006d12b269e40ab
Signed-off-by: Reinaldo Penno <[email protected]>
LOG.error("Could not find method {} in class", methodName);
return;
} catch (InvocationTargetException e) {
- LOG.error("Invocation target exception: {}", e.getMessage());
+ LOG.error("Invocation target exception: {}", e.getTargetException().getMessage());
return;
} catch (UniformInterfaceException e) {
LOG.error("REST Server error. Message: {}",
}
}
}
-
}
LOG.error("Could not remove all paths containing function: {} ", serviceFunction.getName());
}
} else {
- LOG.warn("Failed to get reference to Service Function State {} ", serviceFunction.getName());
+ LOG.info("Could not find Service function Paths using Service Function: {} ", serviceFunction.getName());
}
printTraceStop(LOG);
}
CheckedFuture<Void,TransactionCommitFailedException> submitFuture = writeTx.submit();
Futures.addCallback(submitFuture, sfcDataStoreCallback);
if (!sfcDataStoreCallback.getTransactioSuccessful()) {
- LOG.error("Failed to create Service Function Type entry for SF: {}",
+ LOG.warn("Failed to create Service Function Type entry for SF: {}",
serviceFunction.getName());
}