GX-Bug #67962 » filter_null_logs_from_log_files.patch
src/GXMainComponents/Controllers/HttpView/Admin/LoggingController.inc.php (date 1606218810287) | ||
---|---|---|
83 | 83 |
unset($logs[count($logs) - 1]); |
84 | 84 |
} |
85 | 85 |
} |
86 |
|
|
87 |
$logs = array_filter($logs ?? [], static function($log){ |
|
88 |
return $log !== "null\n" && $log !== "null"; |
|
89 |
}); |
|
86 | 90 |
|
87 |
return MainFactory::create('JsonHttpControllerResponse', ['logs' => array_reverse($logs ?? [])]);
|
|
91 |
return MainFactory::create('JsonHttpControllerResponse', ['logs' => array_reverse($logs)]); |
|
88 | 92 |
} |
89 | 93 |
|
90 | 94 |
|