to support muti-line and more than one commands in one commit

This commit is contained in:
aaronchen2k
2020-01-16 17:11:45 +08:00
parent 341171bf1a
commit 74e29ce8be
3 changed files with 14 additions and 19 deletions
+2 -2
View File
@@ -222,9 +222,9 @@ class cron extends control
$log = '';
$time = $now->format('G:i:s');
if (empty($output)) {
$output = '\n';
$output = "\n";
}
if (count($output) > 100) { // return if output a lot of info
if (strlen($output) > 100) { // return if output a lot of info
$output = "\n" . $output;
}
$log = "$time task " . $id . " executed,\ncommand: $cron[command].\nreturn : $return.\noutput : $output\n";