Skip to content

Commit

Permalink
chore: reword logs to make them clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
njuguna-n committed Nov 14, 2024
1 parent 961fbe3 commit a37aae4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions couch2pg/src/importer.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const storeDocs = async (allDocsResult) => {
const importChangesBatch = async (couchDb, source) => {
const dbName = couchDb.name.split('/').pop();
const seq = await getSeq(source);
console.info(`Downloading CouchDB changes feed from ${seq} in ${dbName}`);
console.info(`Downloading ${dbName} changes feed from ${seq}`);

let pending;
try {
Expand All @@ -150,7 +150,7 @@ const importChangesBatch = async (couchDb, source) => {
const docsToDownload = [];
changes.results.forEach(change => change.deleted ? docsToDelete.push(change) : docsToDownload.push(change));

console.info(`There are ${docsToDelete.length} deletions and ${docsToDownload.length} new changed documents ` +
console.info(`There are ${docsToDelete.length} deletions and ${docsToDownload.length} new / changed documents ` +
`in ${dbName}`);

console.log(`There are approximately ${pending} changes left in ${dbName}`);
Expand Down

0 comments on commit a37aae4

Please sign in to comment.