Re: [Mimedefang] Re: syslog: invalid level/facility

2005-02-08 Thread Dave O'Neill
Tim Boyer wrote:
Hmm.  Absolutely correct.  But I wonder why it's working on the 2.44
system, and fails on the 2.49?
You said earlier that this was on a reinstall of your base OS, right? 
Is there a chance you were using the Unix::Syslog module on the old 
system, but are now using Sys::Syslog?  Unix::Syslog only understands 
the numeric syslog codes, so convert_log_facility_to_number() call does 
the conversion in the
  if ($Features{"Unix::Syslog"})
codepath.  It assumes that any log level it doesn't understand should be 
treated as '0'.  That code isn't applicable if you use Sys::Syslog, as 
it uses the textual descriptions directly and will error if it sees one 
it doesn't understand.

Cheers,
Dave
--
Dave O'Neill <[EMAIL PROTECTED]>Roaring Penguin Software Inc.
+1 (613) 231-6599 ext. 104   http://www.roaringpenguin.com/
For CanIt technical support, please mail: [EMAIL PROTECTED]
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] Re: syslog: invalid level/facility

2005-02-07 Thread Tim Boyer
On Mon, 07 Feb 2005 09:48:13 -0500, "Dave O'Neill"
<[EMAIL PROTECTED]> wrote:

>Tim Boyer wrote:
>> I'm getting the following in the log file when receiving mail:
>> 
>> Feb  6 21:10:32 tolstoy mimedefang-multiplexor[28288]: Slave 0
>> stderr:syslog: invalid level/facility: good at
>> /usr/local/bin/mimedefang.pl line 553
>
>The error "invalid level/facility: good" is the clue here.  It looks 
>like somewhere in your filter, md_syslog() is being called with a first 
>argument of "good".  This will fail, as there's no such log level.
>
>Cheers,
>Dave

Hmm.  Absolutely correct.  But I wonder why it's working on the 2.44
system, and fails on the 2.49?

Ah, well - sometime when I get really bored, I'll find out.  In the
meantime, that fixed it.  Thanks much, Dave!


-- 
Tim Boyer
[EMAIL PROTECTED]

___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang