Remove time from logwatch reports

Greg Borders gborders at jlewiscooper.com
Fri Feb 3 15:24:35 GMT 2006




<snip>
>> I also don't like this feature.  I've been trying to figure out how  
>> to remove it without success.  Can you give me some hints how to do  
>> so.
>>
>> As well, I agree that
>>
>> Log Speed = no
>>
>> should mean exactly what it says...no speed logging.
>>     
>
> Either edit line 110 of MessageBatch, or else just set syslog.conf so  
> that mail.info is not logged to your maillog.
<snip>


Taking a look at the MessageBatch.pm file, I see in 'if'  in there for 
the log variable, would this logic work? My Pearl is weak. ;)

  # before

  MailScanner::Log::InfoLog("Batch completed at %d bytes per second (%d 
/ %d)",
                            $speed, $totalbytes, $now-$this->{starttime})
     if MailScanner::Config::Value('logspeed');
  MailScanner::Log::InfoLog("Batch processed in %.2f seconds", $totaltime);

 # after

  if ( MailScanner::Config::Value('logspeed') )
  {
    MailScanner::Log::InfoLog("Batch completed at %d bytes per second 
(%d / %d)",
                          $speed, $totalbytes, $now-$this->{starttime})
    MailScanner::Log::InfoLog("Batch processed in %.2f seconds", 
$totaltime);
  }

Greg Borders
Sys. Admin.
JLC Co.

--
This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format. Thank you.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20060203/a6bad431/attachment.html


More information about the MailScanner mailing list