> I was curious why spamd log entries always had an extra blank line
> after them.
>
> It looks like Sys::Syslog always does that so any perl script
> reporting to syslog via that mechanism has extra blank lines.  (MacOS
> X 10.4.2).

I would guess, without looking at any code, that the syslog stuff always
adds a newline to the end of the message text when logging.  If the message
text already ends in a newline, you get a blank line.  Probably all or
almost all of the sa log lines already end with a newline.

The trivial change is to not add the extra newline if the text already ends
in a newline.  If that is awkward, filter off any terminal newline in the
text before logging, and the logging code will put one back on.

        Loren

Reply via email to