On 05/15/2014 08:50 AM, Sylvain Viart wrote:
> Hi,
>
> I think that syslog() call don't pass through system syslog.
> I use Mailman/Logging/Syslog.py
>
> from Mailman.Logging.Syslog import syslog
>
> Is there a way to keep the code without disabling it?
> In the mailman/Mailman folder (2.1.15) debug tagged syslog calls are
> commented.
>
> Of course I can write some code:
>
> DEBUG = False
>
> def debug(msg, *args, **kws):
> if DEBUG == 1:
> syslog.write_ex('debug', msg, args, kws)
>
> def process(mlist, msg, msgdata=None):
> global DEBUG
> if hasattr(mlist, 'debug'):
> DEBUG = mlist.debug
> […]
>
> enabling with: config_list -i <(echo mlist.debug=1) listname
>
> I did, in fact… :-)
>
> Did I miss some nice feature?
No, but you could just leave your syslog('debug', ...) calls intact and do
ln -s /dev/null /path/to/mailman/logs/debug
--
Mark Sapiro <[email protected]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
_______________________________________________
Mailman-Developers mailing list
[email protected]
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives:
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe:
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org
Security Policy: http://wiki.list.org/x/QIA9