From 9ad824c7de4cb254dd5f43d4856134e37661c2e4 Mon Sep 17 00:00:00 2001 From: Ajay Devarakonda Date: Fri, 19 Jan 2024 18:09:54 +0530 Subject: [PATCH] TP-53168 | Fixed build conflict (#355) * TP-38709 | Merging the changes to master on the logfix * TP-53168 | Implemented metrics publishment on failure of RCA generation * TP-53168 | Added rca generation failure counter to must register alerts * TP-53168 | fixed log level on rca failure * TP-53168 | Added incident id as part of log for rca failure * TP-53168 | Fixed build conflict --- service/rca/rca_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/rca/rca_service.go b/service/rca/rca_service.go index 4c17529..b8cf6df 100644 --- a/service/rca/rca_service.go +++ b/service/rca/rca_service.go @@ -147,7 +147,7 @@ func (r *RcaService) PostRcaToIncidentChannel(postRcaRequest service.PostRcaRequ return err } - logger.Error(fmt.Sprintf("RCA generation for incident %s had failed due to the reason: %s", rcaEntity.IncidentID, failureData.Reason)) + logger.Error(fmt.Sprintf("RCA generation for incident %d had failed due to the reason: %s", rcaEntity.IncidentID, failureData.Reason)) rcaEntity.Status = "FAILURE" rcaEntity.UpdatedAt = time.Now()