Refactor ServerStorageCheckJob handle method to improve error handling and messaging
This commit is contained in:
parent
d55b444bb8
commit
55f4e77d66
1 changed files with 2 additions and 0 deletions
|
|
@ -10,6 +10,7 @@
|
|||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Facades\RateLimiter;
|
||||
|
||||
class ServerStorageCheckJob implements ShouldBeEncrypted, ShouldQueue
|
||||
|
|
@ -38,6 +39,7 @@ public function handle()
|
|||
|
||||
if (is_null($this->percentage)) {
|
||||
$this->percentage = $this->server->storageCheck();
|
||||
Log::info('Server storage check percentage: '.$this->percentage);
|
||||
}
|
||||
if (! $this->percentage) {
|
||||
return 'No percentage could be retrieved.';
|
||||
|
|
|
|||
Loading…
Reference in a new issue