|
|
@@ -154,7 +154,7 @@ function MagicJS(scriptName = "MagicJS", logLevel = "INFO") {
|
|
|
this.notification.setBark(barkUrl);
|
|
|
}
|
|
|
}
|
|
|
- this.logger.log(`${scriptName}, 开始执行!`);
|
|
|
+ this.logger.info(`${scriptName}, 开始执行!`);
|
|
|
}
|
|
|
get isRequest() {
|
|
|
return typeof $request !== "undefined" && typeof $response === "undefined";
|
|
|
@@ -186,7 +186,7 @@ function MagicJS(scriptName = "MagicJS", logLevel = "INFO") {
|
|
|
this._endTime = new Date().getTime();
|
|
|
const ms = this._endTime - this._startTime;
|
|
|
const costTime = ms / 1000;
|
|
|
- this.log(`${info}耗时【${costTime}】秒`);
|
|
|
+ this.logger.info(`${info}耗时【${costTime}】秒`);
|
|
|
}
|
|
|
done = (value = {}) => {
|
|
|
// this._endTime = Date.now();
|