John D. Hardin writes: > On Tue, 22 Aug 2006, Daryl C. W. O'Shea wrote: > > > >> I took a casual glance at the code, it seems to be related to the > > >> "test_log" subroutine, which populates test_log_msgs, that later > > >> gets added to the REPORT and SUMMARY. > > > > > > I got the same impression, but $self->test_log($msg); in the > > > plugin does not do it. Perhaps I'm doing it in the wrong place, I'll > > > keep at it. > > > > I don't recall much about this, but I used this sub in my SIQ plugin (in > > my sandbox) to take care of this: > > > > sub _log_hit { > > my ($self, $pms, $rulename, $text) = @_; > > > > $pms->test_log ($text); > > $pms->got_hit ($rulename, ""); > > } > > What finally worked for me was to call $pms->test_log(...) in the > plugin eval routine. I'm modeling my plugin on the URICountry plugin, > and the parsed_metadata() routine is *not* the place to call > test_log()... :)
ah. yes, that's important ;) --j.