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()... :) -- John Hardin KA7OHZ ICQ#15735746 http://www.impsec.org/~jhardin/ [EMAIL PROTECTED] FALaholic #11174 pgpk -a [EMAIL PROTECTED] key: 0xB8732E79 - 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79 ----------------------------------------------------------------------- Taking my gun away because I *might* shoot someone is like cutting my tongue out because I *might* yell "Fire!" in a crowded theater. -- Peter Venetoklis ----------------------------------------------------------------------- 28 days until Talk Like a Pirate day