Skip to content

Commit 499795d

Browse files
committed
descriptive messages
1 parent cf80f71 commit 499795d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infra/dataform-export/firestore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class FirestoreBatch {
3939
}
4040

4141
async commitBatches () {
42-
console.log(`Committing ${this.batchPromises.length} batches`)
42+
console.log(`Committing ${this.batchPromises.length} batches to ${this.collectionName}`)
4343
await Promise.all(
4444
this.batchPromises.map(async (batchPromise) => await batchPromise.commit()
4545
.catch((error) => {
@@ -135,7 +135,7 @@ export class FirestoreBatch {
135135
await this.finalFlush('set')
136136

137137
const duration = (Date.now() - startTime) / 1000
138-
console.info(`Transfer complete. Total rows processed: ${totalRowsProcessed}. Time: ${duration} seconds`)
138+
console.info(`Transfer to ${this.collectionName} complete. Total rows processed: ${totalRowsProcessed}. Time: ${duration} seconds`)
139139
}
140140

141141
async export (config, query) {

0 commit comments

Comments
 (0)