update:优化定时任务日志记录

This commit is contained in:
JaguarJack
2020-09-20 09:50:48 +08:00
parent 5fa20a4f28
commit 5223997031
4 changed files with 5 additions and 5 deletions

View File

@@ -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();
}
}

View File

@@ -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)

View File

@@ -11,5 +11,5 @@
"aliases": [],
"files": [],
"requires": [],
"enable": false
"enable": true
}