From: Mike Taylor Date: Thu, 30 Sep 2010 13:15:53 +0000 (+0100) Subject: When skipping a test due to a rule, note this with the proper logging X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=d62e0cbe64ec40702f792a45c252585dae147d4c;p=irspy-moved-to-github.git When skipping a test due to a rule, note this with the proper logging mechanism, not just a warn() that goes to the server log. --- diff --git a/lib/ZOOM/IRSpy.pm b/lib/ZOOM/IRSpy.pm index de2c561..96ead57 100644 --- a/lib/ZOOM/IRSpy.pm +++ b/lib/ZOOM/IRSpy.pm @@ -533,7 +533,8 @@ sub check { $conn->option(current_test_address => $nextaddr); my $tname = $node->name(); if ($this->should_skip_test($tname)) { - warn "skipping test '$tname' due to rule"; + $conn->log("irspy_test", + "skipping test '$nextaddr' = $tname due to rule"); goto NEXT_TEST; }