diff --git a/.env b/.env index 67caf8e6a..fd3409ce2 100644 --- a/.env +++ b/.env @@ -4,7 +4,7 @@ APP_KEY=base64:PBOxrGFJAtwj9SDF4F0DZ1J+6MjrJmRiPZJQwRdy3XQ= APP_DEBUG=true APP_URL=http://localhost -LOG_CHANNEL=stack +LOG_CHANNEL=daily DB_CONNECTION=mysql DB_HOST=127.0.0.1 diff --git a/app/Console/Commands/holdingfinances.php b/app/Console/Commands/holdingfinances.php index c7a56f239..16e394732 100644 --- a/app/Console/Commands/holdingfinances.php +++ b/app/Console/Commands/holdingfinances.php @@ -66,7 +66,6 @@ class HoldingFinancesCommand extends Command $job->charId = 93738489; $job->page = $i; ProcessWalletJournalJob::dispatch($job)->onQueue('journal'); - Log::info('Process Wallet Journal Job dispatched.'); } //Mark the job as finished diff --git a/app/Http/Controllers/Dashboard/AdminController.php b/app/Http/Controllers/Dashboard/AdminController.php index 9c16dc43f..87e110a9f 100644 --- a/app/Http/Controllers/Dashboard/AdminController.php +++ b/app/Http/Controllers/Dashboard/AdminController.php @@ -80,11 +80,18 @@ class AdminController extends Controller } /** Users & Permissions Pane */ + $userArr = array(); + $userArrs = array(); //Get the users from the database to allow a selection of users for various parts of the webpage $users = User::pluck('name')->all(); //Get the available permissions from the database to allow a selection of permissions $permissions = AvailableUserPermission::pluck('permission')->all(); - //Create the user key value pairs + + //For each user we need to build their username and permissions array into one array + /** + * Example: userArrs[0]['name'] = Minerva Arbosa + * userArrs[0]['permissions'] = ['admin', 'contract.admin', superuser] + */ foreach($users as $key => $value) { $user[$value] = $value; } diff --git a/app/Library/Finances/Helper/FinanceHelper.php b/app/Library/Finances/Helper/FinanceHelper.php index b98aa2959..1cc2977a1 100644 --- a/app/Library/Finances/Helper/FinanceHelper.php +++ b/app/Library/Finances/Helper/FinanceHelper.php @@ -51,7 +51,7 @@ class FinanceHelper { //If the token is not found, send the user an eve mail, and just exit out of the function if($this->TokenNotFound($token, $scope, $charId)) { - Log::info('Token not found. Character Id: ' . $charId); + Log::critical('Token not found. Character Id: ' . $charId); return null; } @@ -114,7 +114,7 @@ class FinanceHelper { //If the token is not found, send the user an eve mail, and just exit out of the function if($this->TokenNotFound($token, $scope, $charId)) { - Log::info('Token not found.' . 'Character Id: ' . $charId); + Log::critical('Token not found.' . 'Character Id: ' . $charId); return null; } diff --git a/config/logging.php b/config/logging.php index 400bc7f46..a422eeace 100644 --- a/config/logging.php +++ b/config/logging.php @@ -15,7 +15,7 @@ return [ | */ - 'default' => env('LOG_CHANNEL', 'stack'), + 'default' => env('LOG_CHANNEL', 'daily'), /* |-------------------------------------------------------------------------- @@ -46,7 +46,7 @@ return [ 'daily' => [ 'driver' => 'daily', - 'path' => storage_path('logs/laravel.log'), + 'path' => storage_path('logs/daily_laravel.log'), 'level' => 'debug', 'days' => 7, ],