ソースを参照

fix 'this' call

龚成明 2 年 前
コミット
37fc2841a0
1 ファイル変更1 行追加1 行削除
  1. 1 1
      libs/task.js

+ 1 - 1
libs/task.js

@@ -30,7 +30,7 @@ class Task {
       try {
         await task.onTick()
       } catch (e) {
-        this.logger.error(e)
+        task.logger.error(e)
       }
     }, this.delayTime)
   }