Skip to content

Commit

Permalink
fix: log more details on unexpected QA errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKolarik committed Jun 22, 2024
1 parent 9058e8e commit 12afbad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/status-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ export class StatusManager {
});

unSuccessfulResults.forEach(({ target, result }) => {
logger.warn(`IPv${ipVersion} ping test unsuccessful for ${target}: ${result.stats?.loss?.toString() || ''}% packet loss${testPassText}.`);
if (result.stats?.loss) {
logger.warn(`IPv${ipVersion} ping test unsuccessful for ${target}: ${result.stats.loss.toString()}% packet loss${testPassText}.`, { result });
} else {
logger.warn(`IPv${ipVersion} ping test unsuccessful for ${target}: ${testPassText}.`, { result });
}
});

if (!isPassingTest) {
Expand Down

0 comments on commit 12afbad

Please sign in to comment.