Remove static references

This commit is contained in:
James Cole
2023-10-29 06:32:00 +01:00
parent e65d0eef6e
commit 075d459b7c
128 changed files with 391 additions and 391 deletions

View File

@@ -65,7 +65,7 @@ class MailError extends Job implements ShouldQueue
$debug = $exceptionData;
unset($debug['stackTrace']);
unset($debug['headers']);
Log::error(sprintf('Exception is: %s', json_encode($debug)));
app('log')->error(sprintf('Exception is: %s', json_encode($debug)));
}
/**
@@ -102,8 +102,8 @@ class MailError extends Job implements ShouldQueue
app('log')->warning('[RFC] Could not email or log the error. Please validate your email settings, use the .env.example file as a guide.');
return;
}
Log::error($e->getMessage());
Log::error($e->getTraceAsString());
app('log')->error($e->getMessage());
app('log')->error($e->getTraceAsString());
}
}
}