Explorar o código

feat: ✨ Added Error-logging to laravel.log

IceToast %!s(int64=3) %!d(string=hai) anos
pai
achega
5bca37bc4c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      app/Providers/AppServiceProvider.php

+ 2 - 0
app/Providers/AppServiceProvider.php

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