Skip to content

Commit

Permalink
Module Speedtest: Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmccartney committed Dec 14, 2023
1 parent 6706d46 commit 28553cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modules/speedtest-net/container/utils/speedtest.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ module.exports = async () => {
progress: data.upload.progress,
});
}

if (data.type === "log") {
console.log(data?.message);
}
};

await downloadCollection.deleteMany({});
Expand All @@ -33,7 +37,7 @@ module.exports = async () => {

const testResults = await speedTest({
progress: progressEvent,
log: true,
verbosity: 2,
acceptGdpr: true,
acceptLicense: true,
});
Expand Down

0 comments on commit 28553cb

Please sign in to comment.