Skip to content

Commit

Permalink
fix(firestore-bigquery-export): switched out log for actual enum value
Browse files Browse the repository at this point in the history
  • Loading branch information
cabljac committed Nov 6, 2024
1 parent ea218c3 commit a64c308
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion firestore-bigquery-export/functions/src/logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
};

0 comments on commit a64c308

Please sign in to comment.