Skip to content

Commit 31faeba

Browse files
committed
refactor(network): improve the log messages
closes #174
1 parent 099024a commit 31faeba

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/network/DefaultHarExporter.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,13 @@ export class DefaultHarExporter implements HarExporter {
5959
return JSON.stringify(result);
6060
} catch (e) {
6161
const stack = ErrorUtils.isError(e) ? e.stack : e;
62-
const formattedEntry = format('%j', entry);
6362

63+
this.logger.debug(
64+
format(`The entry has been filtered out due to an error: %j`, entry)
65+
);
6466
this.logger.err(
6567
`The entry is missing as a result of an error in the 'transform' function.
66-
67-
The passed entry:
68-
${formattedEntry}
69-
68+
s
7069
The stack trace for this error is:
7170
${stack}`
7271
);

0 commit comments

Comments
 (0)