Skip to content

Commit 82fdd6f

Browse files
Chore: clean up ping logs (#2629)
Co-authored-by: Alex Justesen <[email protected]>
1 parent 5bb28c2 commit 82fdd6f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/Actions/PingHostname.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ public function handle(?string $hostname = null, int $count = 1): PingResult
2323
count: $count,
2424
))->run();
2525

26-
Log::info('Pinged hostname', [
26+
$data = $ping->toArray();
27+
unset($data['raw_output'], $data['lines']);
28+
29+
Log::debug('Pinged hostname', [
2730
'host' => $hostname,
28-
'data' => $ping->toArray(),
31+
'data' => $data,
2932
]);
3033

3134
return $ping;

0 commit comments

Comments
 (0)