logging changes
This commit is contained in:
2
.env
2
.env
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user