mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-08-01 22:44:41 +00:00
[Web] add crontasks logs
This commit is contained in:
parent
dce3239809
commit
4bb02f4bb0
4 changed files with 110 additions and 0 deletions
|
|
@ -947,6 +947,17 @@ if (isset($_GET['query'])) {
|
|||
}
|
||||
echo (isset($logs) && !empty($logs)) ? json_encode($logs, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT) : '{}';
|
||||
break;
|
||||
case "cron":
|
||||
// 0 is first record, so empty is fine
|
||||
if (isset($extra)) {
|
||||
$extra = preg_replace('/[^\d\-]/i', '', $extra);
|
||||
$logs = get_logs('cron-mailcow', $extra);
|
||||
}
|
||||
else {
|
||||
$logs = get_logs('cron-mailcow');
|
||||
}
|
||||
echo (isset($logs) && !empty($logs)) ? json_encode($logs, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT) : '{}';
|
||||
break;
|
||||
case "postfix":
|
||||
// 0 is first record, so empty is fine
|
||||
if (isset($extra)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue