Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 41b8536

Browse files
committed
Do not send log messages to javascript console when timed
1 parent 687df6e commit 41b8536

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

runestone/common/js/runestonebase.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ export default class RunestoneBase {
8888
}
8989
post_return = response.json();
9090
}
91-
console.log("logging event " + JSON.stringify(eventInfo));
91+
if (!this.isTimed || eBookConfig.debug) {
92+
console.log("logging event " + JSON.stringify(eventInfo));
93+
}
9294
if (
9395
typeof pageProgressTracker.updateProgress === "function" &&
9496
eventInfo.act != "edit" &&
@@ -127,7 +129,9 @@ export default class RunestoneBase {
127129
}
128130
post_promise = await response.json();
129131
}
130-
console.log("running " + JSON.stringify(eventInfo));
132+
if (!this.isTimed || eBookConfig.debug) {
133+
console.log("running " + JSON.stringify(eventInfo));
134+
}
131135
if (
132136
typeof pageProgressTracker.updateProgress === "function" &&
133137
this.optional == false

0 commit comments

Comments
 (0)