mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-16 16:37:12 +00:00
Added SOGo logs
This commit is contained in:
1 parent
980acb507e
commit
2291b4e121
5 files changed
+92
-4
No files matched your search
@@ -5228,6 +5228,14 @@ function get_logs($container, $lines = 100) {
|
||||
return $data_array;
|
||||
}
|
||||
}
|
||||
if ($container == "sogo-mailcow") {
|
||||
if ($data = $redis->lRange('SOGO_LOG', 1, $lines)) {
|
||||
foreach ($data as $json_line) {
|
||||
$data_array[] = json_decode($json_line, true);
|
||||
}
|
||||
return $data_array;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
?>
|
||||
Reference in new issue
Block a user