modified log and warning messages for exceptions.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Log;
|
||||
|
||||
use Commands\Library\CommandHelper;
|
||||
use App\Library\Finances\Helper\FinanceHelper;
|
||||
@@ -65,6 +66,7 @@ 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
|
||||
|
||||
@@ -75,6 +75,6 @@ class ProcessWalletJournalJob implements ShouldQueue
|
||||
*/
|
||||
public function failed($exception)
|
||||
{
|
||||
dd($exception);
|
||||
Log::critical($exception);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,6 +71,6 @@ class ProcessWalletTransactionJob implements ShouldQueue
|
||||
* @return void
|
||||
*/
|
||||
public function failed($exception) {
|
||||
dd($exception);
|
||||
Log::critical($exception);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,6 +98,7 @@ class SendEveMailJob implements ShouldQueue
|
||||
'character_id'=> 93738489,
|
||||
]);
|
||||
} catch(RequestFailedException $e) {
|
||||
Log::warning($e);
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -112,6 +113,6 @@ class SendEveMailJob implements ShouldQueue
|
||||
*/
|
||||
public function failed($exception)
|
||||
{
|
||||
dd($exception);
|
||||
Log::critical($exception);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)) {
|
||||
printr("Token not found\n");
|
||||
Log::info('Token not found. Character Id: ' . $charId);
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -76,7 +76,8 @@ class FinanceHelper {
|
||||
'division' => 3,
|
||||
]);
|
||||
} catch(RequestFailedException $e) {
|
||||
return $e->getEsiResponse();
|
||||
Log::warning($e->getEsiResponse());
|
||||
return null;
|
||||
}
|
||||
|
||||
//Decode the wallet from json into an array
|
||||
@@ -113,6 +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);
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -147,7 +149,8 @@ class FinanceHelper {
|
||||
'division' => $division,
|
||||
]);
|
||||
} catch(RequestFailedException $e) {
|
||||
return $e->getEsiResponse();
|
||||
Log::warning($e->getEsiResponse());
|
||||
return null;
|
||||
}
|
||||
|
||||
//Set the total pages we need to cycle through.
|
||||
@@ -216,7 +219,8 @@ class FinanceHelper {
|
||||
'division' => $division,
|
||||
]);
|
||||
} catch(RequestFailedException $e) {
|
||||
return $e->getEsiResponse();
|
||||
Log::warning($e->getEsiResponse());
|
||||
return null;
|
||||
}
|
||||
|
||||
$pages = $journals->pages;
|
||||
@@ -265,7 +269,8 @@ class FinanceHelper {
|
||||
'division' => $division,
|
||||
]);
|
||||
} catch(RequestFailedException $e) {
|
||||
return $e->getEsiResponse();
|
||||
Log::warning($e->getEsiResponse());
|
||||
return null;
|
||||
}
|
||||
|
||||
//Decode the wallet from json into an array
|
||||
|
||||
Reference in New Issue
Block a user