Skip to content

Commit a9853f6

Browse files
More user-friendly bundle logging
1 parent 461486c commit a9853f6

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/bundle.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,14 @@ export class Bundle {
9393
}
9494

9595
// Perform bundling, and collect results
96-
this.logger.info(
96+
this.logger.trace(
9797
"Creating bundle stream",
9898
{
9999
bundleName: this.name,
100100
inFiles: this.initialPaths,
101101
}
102102
);
103+
this.logger.info("Started bundling", { bundleName: this.name });
103104
const chunks = await getStream.array(
104105
this.streamFactory(
105106
intoStream.object(orderedFiles),
@@ -122,10 +123,8 @@ export class Bundle {
122123
}
123124

124125
// Perform bundling, and collect results
125-
this.logger.info(
126-
"Bundle stream completed",
127-
{ bundleName: this.name }
128-
);
126+
this.logger.trace("Bundle stream completed", { bundleName: this.name });
127+
this.logger.info("Finished bundling", { bundleName: this.name });
129128

130129
return chunks as Vinyl[];
131130
}

0 commit comments

Comments
 (0)