This commit is contained in:
2021-04-22 13:53:46 +08:00
parent f8c75fb220
commit 5ce37e93fd
+1 -5
View File
@@ -268,11 +268,7 @@ abstract class Crontab extends BaseObject
if ($params === null) {
return;
}
$name = date('Y-m-d') . '.log';
write(storage($name, 'log/crontab'), Json::encode([
'name' => $this->name,
'response' => serialize($params)
]));
write(Json::encode(['name' => $this->name, 'response' => serialize($params)]), 'crontab');
} catch (\Throwable $throwable) {
logger()->addError($throwable, 'throwable');
}