Added SOGo logs

This commit is contained in:
andryyy committed 2017-05-13 22:58:29 +02:00
1 parent 980acb507e
commit 2291b4e121
5 files changed
+92 -4

No files matched your search

+8
View File
@@ -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;
}
?>