Hi Sergey, Sorry about the delayed responses.
I've been reading through the help and source code to try to gain a better understanding of the issue. I think I get it now. Using LogVerbose should make the log-file AND log-message (i.e. stderr/stdout) output verbose. Adding the --quiet option should silence all but the error messages from the log-message output, leaving you with a low verbosity for the log-messages and a high verbosity for the log-file. For the curl output, I don't think I have the ability to redirect it our logging file, but at least for the log-messages, we shouldn't print them if `--quiet` is enabled. Basically we should change this if() statement https://github.com/Cisco-Talos/clamav-devel/blob/dev/0.104/libfreshclam/libfreshclam_internal.c#L339 from: if (mprintf_verbose) { to: if (mprintf_verbose && !mprintf_quiet) { As for the "Connecting via proxy" message: So I haven't tested it with a proxy yet to confirm, but the "Connecting via proxy" message shouldn't be printed if you have --quiet option enabled with the LogVerbose (or --verbose) disabled. It uses the standard logg() function to print at info-level, and those should be suppressed by --quiet though it will still write them to your log-file. As a disclaimer though, I believe there is a bug with the LogTime option that breaks all of this. If you enable LogTime you'll find that the logic to evaluate log levels doesn't work correctly. Fixing that isn't as simple, because the method our logg() function uses to assign the log-level is super hacky and ought to be reworked to use an enum and a separate level argument. Anyways my point really is that I expect some bad behavior when LogTime is enabled. Regards, Micah > -----Original Message----- > From: clamav-users <clamav-users-boun...@lists.clamav.net> On Behalf Of > Sergey > Sent: Thursday, October 8, 2020 3:56 AM > To: ClamAV users ML <clamav-users@lists.clamav.net> > Subject: Re: [clamav-users] ClamAV® blog: ClamAV 0.103.0 released! > > On Friday 02 October 2020, Micah Snyder (micasnyd) via clamav-users wrote: > > > It looks like you have Verbose enabled in your freshclam.conf file, > > which is causing extra output from libcurl to be displayed despite the > > --quiet option. > > Yes. But the option is called LogVerbose: > > # Enable verbose logging. > # Default: no > LogVerbose yes > > I thought that it does not affect to foreground messages. Should the title and > comment should be changed maybe? > > And the second problem remains: the "Connecting via proxy" message shown > in any cases > > > The thing that was fixed was that "Testing database: ..." was being > > printed instead of logged, meaning it ignored the --quiet option. See: > > https://github.com/Cisco-Talos/clamav- > devel/commit/095abcc28bc86fe2579 > > 8be564d685f76530b19bd#diff-144511dd46e128d7d330578040a81f23 > > Thanks. > > -- > Regards, Sergey > > _______________________________________________ > > clamav-users mailing list > clamav-users@lists.clamav.net > https://lists.clamav.net/mailman/listinfo/clamav-users > > > Help us build a comprehensive ClamAV guide: > https://github.com/vrtadmin/clamav-faq > > http://www.clamav.net/contact.html#ml _______________________________________________ clamav-users mailing list clamav-users@lists.clamav.net https://lists.clamav.net/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml