Reviewed Input and Output Waiters and improved logging in workers

This commit is contained in:
n1474335
2023-01-18 18:07:06 +00:00
parent 56d1a016da
commit 91f1be8c70
12 changed files with 204 additions and 111 deletions
+7 -1
View File
@@ -9,6 +9,12 @@
*/
import Utils from "../../core/Utils.mjs";
import loglevelMessagePrefix from "loglevel-message-prefix";
loglevelMessagePrefix(log, {
prefixes: [],
staticPrefixes: ["InputWorker"]
});
// Default max values
// These will be correctly calculated automatically
@@ -52,7 +58,7 @@ self.addEventListener("message", function(e) {
return;
}
log.debug(`Receiving ${r.action} from InputWaiter.`);
log.debug(`Receiving command '${r.action}'`);
switch (r.action) {
case "loadUIFiles":