to much syslogging by default

Jakub Jelen jjelen at redhat.com
Fri Mar 27 10:56:19 EDT 2015


Hi all,

I would like to follow this topic from the end of January:
http://lists.andrew.cmu.edu/pipermail/cyrus-sasl/2015-January/002785.html
Discussion about this continued in our bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1187097

I did some investigation under the hood of cyrus-sasl and finally I 
found a possible solution. When you grep through your plugins [ grep 
"\->log(" plugins/* ], some of them use construct that trows everything 
into syslog with ignoring LOG_LEVEL and user callbacks:
[...]->log(NULL, [...]

And some of them are using connection structure which enables them to 
log using own handler and whatever developer needs:
[..]->log([...]->conn, [..]

 From my point of view, there is no real order where is used which of 
these (if there is, I would be glad for some explanation). I see that 
digestmd5 is using conn _almost_ everywhere, but gssapi _almost_ nowhere.

I understand, that sometimes there is conn not available, but this is 
not the case. Pavel tested attached patch and confirmed that it solved 
his problem in SSSD. At this point I would like to open discussion here, 
if you are willing to apply this patch into upstream to give developers 
_some_ control over logging or if you can provide some comments on this.

Unfortunately previous thread died with resolution "I suspect you are 
right, as your analysis indicates.", because there was nobody with 
solution. Now there is solution so I would be glad for some constructive 
discussion to this issue.

Best Regards,
Jakub Jelen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cyrus-sasl-2.1.26-user-specified-logging.patch
Type: text/x-patch
Size: 1296 bytes
Desc: not available
Url : http://lists.andrew.cmu.edu/pipermail/cyrus-sasl/attachments/20150327/f006cf4f/attachment.bin 


More information about the Cyrus-sasl mailing list