On Tue, May 31, 2005 at 09:48:12AM +0800, imacat said: > On Mon, 30 May 2005 22:55:10 +0100 > Matt Fretwell <[EMAIL PROTECTED]> wrote: > > > Thank you for your answer. I have made some test of redirecting the > > > Syslog channel you specified, but the problem still exists. The > > > "LibClamAV Warning:..." messages are still there at the console. > > You did restart syslogd after the changes? > This is print to stderr and return. It did not even try to log to > syslog. If I did not made a mistake stderr can not possible be > redirected to syslog logger. Am I right? Did I miss something? > > Is there any way to tell cli_warning() that LogSyslog is in use in > clamav-milter/clamav-milter.c? It's strange that only clamav-milter and > sigtool is using cli_errmsg() and cli_warnmsg().
The clamav-milter code is scattered liberally with cli_*msg lines, which do all of this. I am slowly working through a patch set for output unification that basically dumps all of the work on the logg() function in shared/output.c It will be up to logg() to decide whether a message should go to syslog, the console, a seperate logfile, or some combination, depending on variables set in the calling program. As you can imagine, this is not a small patch set, so it is taking some time. Then of course there is the uncertainty of whether or not the Team members will want the patch, but it seems like something that needs to be done. I administer all of my systems that run the milter headless, and I never see the messages you are mentioning, but this is reminding me that I am probably missing important information because it's not going to logs that then get parsed and mailed to me. -- -------------------------------------------------------------------------- | Stephen Gran | Boys will be boys, and so will a lot of | | [EMAIL PROTECTED] | middle-aged men. -- Kin Hubbard | | http://www.lobefin.net/~steve | | --------------------------------------------------------------------------
pgpD1AGRYvxk5.pgp
Description: PGP signature
_______________________________________________ http://lurker.clamav.net/list/clamav-users.html