From a64c3089e0316f81c5b4b09ecf2087ac482893ee Mon Sep 17 00:00:00 2001 From: Jacob Cable Date: Wed, 6 Nov 2024 14:15:57 +0000 Subject: [PATCH] fix(firestore-bigquery-export): switched out log for actual enum value --- firestore-bigquery-export/functions/src/logs.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/firestore-bigquery-export/functions/src/logs.ts b/firestore-bigquery-export/functions/src/logs.ts index 5eb112f3e..d3a895fbf 100644 --- a/firestore-bigquery-export/functions/src/logs.ts +++ b/firestore-bigquery-export/functions/src/logs.ts @@ -204,10 +204,17 @@ export const logFailedEventAction = ( operation: ChangeType, error: Error ) => { + const changeTypeMap = { + 0: "CREATE", + 1: "DELETE", + 2: "UPDATE", + 3: "IMPORT", + }; + logger.error(action, { document_name, event_id, - operation, + operation: changeTypeMap[operation], error, }); };