Skip to content

Commit

Permalink
less logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Nov 7, 2023
1 parent f1dde36 commit 4a99d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pds/src/migrate-script/migrate-all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,13 @@ const doImport = async (

let logOutput = ''
for await (const log of importRes.data) {
console.log(`${did}: ${log.toString()}`)
logOutput += log.toString()
}
const lines = logOutput.split('\n')
for (const line of lines) {
if (line.includes('failed to import blob')) {
const cid = line.split(':')[1].trim()
console.log(`failed blob: ${did} ${cid}`)
await logFailedBlob(db, did, cid)
}
}
Expand Down

0 comments on commit 4a99d2d

Please sign in to comment.