Merge branch 'bugfix/missing_action_fail_reporting' into 'develop'
Bugfix/missing action fail reporting ### Summary Adding missing action failure event reporting to NewRelic. Co-authored-by: Kyle Matthew Hedden <kyle.hedden@verizonwireless.com> See merge request https://gitlab.verizon.com/BPHV_MIPS/mvm_core/-/merge_requests/247
This commit is contained in:
commit
e26a09e1ec
@ -114,6 +114,7 @@ public protocol MVMCoreJSONActionHandlerProtocol: MVMCoreActionHandlerProtocol {
|
||||
throw ActionError.unknownAction(type: model.actionType)
|
||||
}
|
||||
} catch {
|
||||
MVMCoreLoggingHandler.shared()?.logCoreEvent(.actionFailed(name: model.actionType, pageType: pageType(from: delegateObject), uuid: uuid, error: error))
|
||||
MVMCoreActionHandler.log(string: "Failed Action \(error)", additionalData: additionalData)
|
||||
throw error
|
||||
}
|
||||
|
||||
@ -40,7 +40,8 @@ public enum MVMCoreEvent {
|
||||
case actionFailed(
|
||||
name: String,
|
||||
pageType: String,
|
||||
uuid: String
|
||||
uuid: String,
|
||||
error: Error?
|
||||
)
|
||||
|
||||
/// The action is completed.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user