mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix alert log api (#9792)
* Fix alert log api Can't send binary data through http :D * fix whitespace
This commit is contained in:
@ -2206,6 +2206,12 @@ function list_logs()
|
||||
$full_query = $full_query . $query . " ORDER BY $timestamp ASC LIMIT $start,$limit";
|
||||
$logs = dbFetchRows($full_query, $param);
|
||||
|
||||
if ($type === 'list_alertlog') {
|
||||
foreach ($logs as $index => $log) {
|
||||
$logs[$index]['details'] = json_decode(gzuncompress($log['details']), true);
|
||||
}
|
||||
}
|
||||
|
||||
api_success($logs, 'logs', null, 200, null, array('total' => $count));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user