logging changes

This commit is contained in:
2019-05-18 14:46:19 -05:00
parent e9487fa58a
commit d56b6c1420
5 changed files with 13 additions and 7 deletions

2
.env
View File

@@ -4,7 +4,7 @@ APP_KEY=base64:PBOxrGFJAtwj9SDF4F0DZ1J+6MjrJmRiPZJQwRdy3XQ=
APP_DEBUG=true APP_DEBUG=true
APP_URL=http://localhost APP_URL=http://localhost
LOG_CHANNEL=stack LOG_CHANNEL=daily
DB_CONNECTION=mysql DB_CONNECTION=mysql
DB_HOST=127.0.0.1 DB_HOST=127.0.0.1

View File

@@ -66,7 +66,6 @@ class HoldingFinancesCommand extends Command
$job->charId = 93738489; $job->charId = 93738489;
$job->page = $i; $job->page = $i;
ProcessWalletJournalJob::dispatch($job)->onQueue('journal'); ProcessWalletJournalJob::dispatch($job)->onQueue('journal');
Log::info('Process Wallet Journal Job dispatched.');
} }
//Mark the job as finished //Mark the job as finished

View File

@@ -80,11 +80,18 @@ class AdminController extends Controller
} }
/** Users & Permissions Pane */ /** 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 //Get the users from the database to allow a selection of users for various parts of the webpage
$users = User::pluck('name')->all(); $users = User::pluck('name')->all();
//Get the available permissions from the database to allow a selection of permissions //Get the available permissions from the database to allow a selection of permissions
$permissions = AvailableUserPermission::pluck('permission')->all(); $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) { foreach($users as $key => $value) {
$user[$value] = $value; $user[$value] = $value;
} }

View File

@@ -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 the token is not found, send the user an eve mail, and just exit out of the function
if($this->TokenNotFound($token, $scope, $charId)) { if($this->TokenNotFound($token, $scope, $charId)) {
Log::info('Token not found. Character Id: ' . $charId); Log::critical('Token not found. Character Id: ' . $charId);
return null; 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 the token is not found, send the user an eve mail, and just exit out of the function
if($this->TokenNotFound($token, $scope, $charId)) { if($this->TokenNotFound($token, $scope, $charId)) {
Log::info('Token not found.' . 'Character Id: ' . $charId); Log::critical('Token not found.' . 'Character Id: ' . $charId);
return null; return null;
} }

View File

@@ -15,7 +15,7 @@ return [
| |
*/ */
'default' => env('LOG_CHANNEL', 'stack'), 'default' => env('LOG_CHANNEL', 'daily'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@@ -46,7 +46,7 @@ return [
'daily' => [ 'daily' => [
'driver' => 'daily', 'driver' => 'daily',
'path' => storage_path('logs/laravel.log'), 'path' => storage_path('logs/daily_laravel.log'),
'level' => 'debug', 'level' => 'debug',
'days' => 7, 'days' => 7,
], ],