feat: Added Error-logging to laravel.log

This commit is contained in:
IceToast 2022-02-08 09:46:33 +01:00
parent 21485a6175
commit 5bca37bc4c

View file

@ -5,6 +5,7 @@ namespace App\Providers;
use App\Models\Settings;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\ServiceProvider;
@ -106,6 +107,7 @@ class AppServiceProvider extends ServiceProvider
config(['services.discord.client_secret' => config('SETTINGS::DISCORD:CLIENT_SECRET')]);
} catch (Exception $e) {
error_log("Settings Error: Could not load settings from database");
Log::error("Settings Error: Could not load settings from database");
}
}
}