增加 调试

This commit is contained in:
iVampireSP.com 2022-11-08 20:23:30 +08:00
parent e694d5c51b
commit 53d3f82b97
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -10,6 +10,7 @@
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Contracts\Queue\ShouldBeUnique;
use Illuminate\Support\Facades\Log;
class CheckHostIfExistsOnModule implements ShouldQueue
{
@ -41,7 +42,8 @@ public function handle()
$response = $http->get('hosts/' . $host->id);
if ($response->status() === 404) {
dispatch(new \App\Jobs\Remote\Host($host, 'delete'));
Log::debug($host->module->name . ' ' . $host->name . ' ' . $host->id . ' 不存在,删除');
// dispatch(new \App\Jobs\Remote\Host($host, 'delete'));
}
}
});