Skip to content

Commit a64c308

Browse files
committed
fix(firestore-bigquery-export): switched out log for actual enum value
1 parent ea218c3 commit a64c308

File tree

1 file changed

+8
-1
lines changed
  • firestore-bigquery-export/functions/src

1 file changed

+8
-1
lines changed

firestore-bigquery-export/functions/src/logs.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,17 @@ export const logFailedEventAction = (
204204
operation: ChangeType,
205205
error: Error
206206
) => {
207+
const changeTypeMap = {
208+
0: "CREATE",
209+
1: "DELETE",
210+
2: "UPDATE",
211+
3: "IMPORT",
212+
};
213+
207214
logger.error(action, {
208215
document_name,
209216
event_id,
210-
operation,
217+
operation: changeTypeMap[operation],
211218
error,
212219
});
213220
};

0 commit comments

Comments
 (0)