Skip to content

Commit

Permalink
Log existing datastream for update and delete call (#948)
Browse files Browse the repository at this point in the history
Co-authored-by: Vaibhav Maheshwari <vmaheshw@vmaheshw-mn2.linkedin.biz>
  • Loading branch information
vmaheshw and Vaibhav Maheshwari authored Jul 10, 2023
1 parent c317f12 commit 9f3c26a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ private void doUpdateDatastreams(Map<String, Datastream> datastreamMap) {
throw new DatastreamValidationException(String.format("Failed to update %s. Can't update numTasks."
+ " old: %s new: %s", key, oldDatastream, datastream));
}

LOG.info("[UPDATE] old datastream = {}, new datastream = {}", oldDatastream, datastream);
} catch (DatastreamValidationException e) {
_dynamicMetricsManager.createOrUpdateMeter(CLASS_NAME, CALL_ERROR, 1);
_errorLogger.logAndThrowRestLiServiceException(HttpStatus.S_400_BAD_REQUEST, e.getMessage());
Expand Down Expand Up @@ -766,7 +768,7 @@ public UpdateResponse delete(String datastreamName) {
}

try {
LOG.info("Delete datastream called for datastream " + datastreamName);
LOG.info("[DELETE] operation called for datastream {} = {}", datastreamName, datastream);

_dynamicMetricsManager.createOrUpdateMeter(CLASS_NAME, DELETE_CALL, 1);
Instant startTime = Instant.now();
Expand Down

0 comments on commit 9f3c26a

Please sign in to comment.