Fixes #2859
This commit is contained in:
@@ -275,7 +275,7 @@ class SettingsController extends Controller
|
|||||||
|
|
||||||
collect($log->getHandlers())->reject(function ($handler) {
|
collect($log->getHandlers())->reject(function ($handler) {
|
||||||
return $handler instanceof SyslogHandler;
|
return $handler instanceof SyslogHandler;
|
||||||
})->each(function ($handler) use ($logContents) {
|
})->each(function ($handler) use (&$logContents, $log) {
|
||||||
if (file_exists($path = $log->getHandlers()[0]->getUrl())) {
|
if (file_exists($path = $log->getHandlers()[0]->getUrl())) {
|
||||||
$logContents = file_get_contents($path);
|
$logContents = file_get_contents($path);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user