Skip to content

Commit b21f0f1

Browse files
authored
Hotfix v1.13.1 (fix for ping failing) (alexjustesen#2561)
Co-authored-by: Alex Justesen <[email protected]>
1 parent cd0915f commit b21f0f1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/Actions/PingHostname.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace App\Actions;
44

5+
use Illuminate\Support\Facades\Log;
56
use Lorisleiva\Actions\Concerns\AsAction;
67
use Spatie\Ping\Ping;
78
use Spatie\Ping\PingResult;
@@ -22,6 +23,11 @@ public function handle(?string $hostname = null, int $count = 1): PingResult
2223
count: $count,
2324
))->run();
2425

26+
Log::info('Pinged hostname', [
27+
'host' => $hostname,
28+
'data' => $ping->toArray(),
29+
]);
30+
2531
return $ping;
2632
}
2733
}

0 commit comments

Comments
 (0)