mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Check error log is empty
This commit is contained in:
parent
d2b502f403
commit
d1ad78fd84
@ -353,6 +353,13 @@ class AppController extends BaseController
|
|||||||
try {
|
try {
|
||||||
Artisan::call('ninja:check-data');
|
Artisan::call('ninja:check-data');
|
||||||
Artisan::call('ninja:init-lookup', ['--validate' => true]);
|
Artisan::call('ninja:init-lookup', ['--validate' => true]);
|
||||||
|
|
||||||
|
// check error log is empty
|
||||||
|
$errorLog = storage_path('logs/laravel-error.log');
|
||||||
|
if (file_exists($errorLog)) {
|
||||||
|
return 'Failure: error log exists';
|
||||||
|
}
|
||||||
|
|
||||||
return RESULT_SUCCESS;
|
return RESULT_SUCCESS;
|
||||||
} catch (Exception $exception) {
|
} catch (Exception $exception) {
|
||||||
return $exception->getMessage() ?: RESULT_FAILURE;
|
return $exception->getMessage() ?: RESULT_FAILURE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user