mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-13 15:17:13 +00:00
[Web] add crontasks logs
This commit is contained in:
1 parent
dce3239809
commit
4bb02f4bb0
4 files changed
+110
No files matched your search
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user