Skip to content

Commit

Permalink
descriptive messages
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ostapenko committed Dec 10, 2024
1 parent cf80f71 commit 499795d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/dataform-export/firestore.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class FirestoreBatch {
}

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

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

async export (config, query) {
Expand Down

0 comments on commit 499795d

Please sign in to comment.