Skip to content

Commit 47e9466

Browse files
committed
Debug ping command
1 parent 866ab2a commit 47e9466

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

scripts/check-monitors.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,15 @@ async function checkPing(target, timeout = 10) {
736736
} catch (error) {
737737
const responseTime = Date.now() - startTime;
738738

739+
// Debug logging for ping errors
740+
console.log(` [PING DEBUG] Target: ${target}`);
741+
console.log(` [PING DEBUG] Command: ${command}`);
742+
console.log(` [PING DEBUG] ERROR: ${error.message}`);
743+
console.log(` [PING DEBUG] Error code: ${error.code}`);
744+
console.log(` [PING DEBUG] Stderr: ${error.stderr}`);
745+
console.log(` [PING DEBUG] Stdout: ${error.stdout}`);
746+
console.log(` [PING DEBUG] Elapsed time: ${responseTime}ms`);
747+
739748
return {
740749
status: 'down',
741750
responseTime,

0 commit comments

Comments
 (0)