upgrade taskloop

This commit is contained in:
锦恢 2025-06-20 17:23:45 +08:00
parent 51ceacbc10
commit 7098382317

View File

@ -419,14 +419,9 @@ export class TaskLoop {
private consumeEpochs() { private consumeEpochs() {
const { verbose = 0 } = this.taskOptions; const { verbose = 0 } = this.taskOptions;
if (verbose > 0) {
console.log(
chalk.gray(`[${new Date().toLocaleString()}]`)
);
}
if (verbose > 1) { if (verbose > 1) {
console.log( console.log(
chalk.gray(`[${new Date().toLocaleString()}]`),
chalk.blue('task loop enters a new epoch') chalk.blue('task loop enters a new epoch')
); );
} }
@ -435,14 +430,10 @@ export class TaskLoop {
private consumeDones() { private consumeDones() {
const { verbose = 0 } = this.taskOptions; const { verbose = 0 } = this.taskOptions;
if (verbose > 0) {
console.log(
chalk.gray(`[${new Date().toLocaleString()}]`),
);
}
if (verbose > 1) { if (verbose > 1) {
console.log( console.log(
chalk.gray(`[${new Date().toLocaleString()}]`),
chalk.green('task loop finish a epoch') chalk.green('task loop finish a epoch')
); );
} }