mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
Improved Recipe logging
This commit is contained in:
parent
d079420d46
commit
a96eb450de
1 changed files with 5 additions and 3 deletions
|
@ -149,18 +149,19 @@ Recipe.prototype.execute = async function(dish, startFrom) {
|
||||||
|
|
||||||
for (let i = startFrom; i < this.opList.length; i++) {
|
for (let i = startFrom; i < this.opList.length; i++) {
|
||||||
op = this.opList[i];
|
op = this.opList[i];
|
||||||
|
log.debug(`[${i}] ${op.name}`);
|
||||||
if (op.isDisabled()) {
|
if (op.isDisabled()) {
|
||||||
log.debug(`[${i}] '${op.name}' is disabled`);
|
log.debug("Operation is disabled, skipping");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (op.isBreakpoint()) {
|
if (op.isBreakpoint()) {
|
||||||
log.debug(`[${i}] Pausing at breakpoint on '${op.name}'`);
|
log.debug("Pausing at breakpoint");
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
input = dish.get(op.inputType);
|
input = dish.get(op.inputType);
|
||||||
log.debug(`[${i}] Executing '${op.name}'`);
|
log.debug("Executing operation");
|
||||||
|
|
||||||
if (op.isFlowControl()) {
|
if (op.isFlowControl()) {
|
||||||
// Package up the current state
|
// Package up the current state
|
||||||
|
@ -196,6 +197,7 @@ Recipe.prototype.execute = async function(dish, startFrom) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.debug("Recipe complete");
|
||||||
return this.opList.length;
|
return this.opList.length;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue