Added more comprehensive logging to FlowControl ops and added '>' prefix to all ChefWorker logs to improve clarity

This commit is contained in:
n1474335 2017-12-29 17:32:23 +00:00
parent 8684bc0158
commit fa6905ef00
9 changed files with 66 additions and 13 deletions

View file

@ -11,6 +11,15 @@ import Chef from "./Chef.js";
import OperationConfig from "./config/MetaConfig.js";
import OpModules from "./config/modules/Default.js";
// Add ">" to the start of all log messages in the Chef Worker
import loglevelMessagePrefix from "loglevel-message-prefix";
loglevelMessagePrefix(log, {
prefixes: [],
staticPrefixes: [">"],
prefixFormat: "%p"
});
// Set up Chef instance
self.chef = new Chef();
@ -91,7 +100,7 @@ async function bake(data) {
);
self.postMessage({
action: "bakeSuccess",
action: "bakeComplete",
data: response
});
} catch (err) {