Code cleanup.

This commit is contained in:
James Cole
2016-05-15 18:36:40 +02:00
parent 260b611293
commit 962965b5b7
53 changed files with 55 additions and 203 deletions

View File

@@ -45,7 +45,6 @@ class MailError extends Job implements ShouldQueue
$this->ipAddress = $ipAddress;
$this->exception = $exceptionData;
Log::debug('In mail job constructor for error handler.');
$debug = $exceptionData;
unset($debug['stackTrace']);
Log::error('Exception is: ' . json_encode($debug));
@@ -58,7 +57,6 @@ class MailError extends Job implements ShouldQueue
*/
public function handle()
{
Log::debug('Start of handle()');
if ($this->attempts() < 3) {
// mail?
try {
@@ -82,7 +80,6 @@ class MailError extends Job implements ShouldQueue
} catch (ErrorException $e) {
Log::error('ErrorException ' . $e->getMessage());
}
Log::debug('Successfully handled error.');
}
}
}