Skip to content

Commit eb87795

Browse files
committed
feat: adjust logging
1 parent 3db28ab commit eb87795

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

bin/importProfileFromJSON.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const main = async () => {
5454

5555
const params = paramsSchema.parse(values);
5656

57-
console.log('Starting import with ID:', params.uid);
57+
console.log(`Starting import with ID: ${params.uid}`);
5858

5959
con = await createOrGetConnection();
6060

@@ -68,12 +68,10 @@ const main = async () => {
6868

6969
filePaths.sort(); // ensure consistent order for offset/limit
7070

71-
console.log('Found files:', filePaths.length);
71+
console.log(`Found files: ${filePaths.length}`);
7272

7373
console.log(
74-
`Importing:`,
75-
Math.min(params.limit, filePaths.length),
76-
`(limit ${params.limit})`,
74+
`Importing: ${Math.min(params.limit, filePaths.length)} (limit ${params.limit}, offset ${params.offset})`,
7775
);
7876

7977
for (const [index, fileName] of filePaths
@@ -124,7 +122,7 @@ const main = async () => {
124122
}
125123

126124
if (index && index % 100 === 0) {
127-
console.log('Done so far:', index, ', failed:', failedImports);
125+
console.log(`Done so far: ${index}, failed: ${failedImports}`);
128126
}
129127
}
130128
} catch (error) {

0 commit comments

Comments
 (0)