update:优化定时任务日志记录
This commit is contained in:
@@ -154,7 +154,7 @@ class Master
|
||||
}
|
||||
} catch (\Throwable $exception) {
|
||||
// todo
|
||||
echo $exception->getMessage();
|
||||
echo sprintf('[%s]: ', date('Y-m-d H:i:s')) . $exception->getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -24,7 +24,7 @@ trait CrontabLogSearch
|
||||
|
||||
public function searchStatusAttr($query, $value, $data)
|
||||
{
|
||||
return $query->where('status', $value);
|
||||
return $query->where('crontab_log.status', $value);
|
||||
}
|
||||
|
||||
public function searchStartAtAttr($query, $value, $data)
|
||||
|
@@ -11,5 +11,5 @@
|
||||
"aliases": [],
|
||||
"files": [],
|
||||
"requires": [],
|
||||
"enable": false
|
||||
"enable": true
|
||||
}
|
Reference in New Issue
Block a user