[Yum-devel] Making yum quiet - yum.logginglevels.setDebugLevel(0) seemingly not working...
Seth Vidal
skvidal at fedoraproject.org
Thu Jun 11 15:27:38 UTC 2009
On Thu, 11 Jun 2009, MacCana, Mike \(London\) wrote:
> -----Original Message-----
> From: yum-devel-bounces at lists.baseurl.org [mailto:yum-devel-bounces at lists.baseurl.org] On Behalf Of Seth Vidal
> Sent: 11 June 2009 16:19
> To: yum development
> Subject: Re: [Yum-devel] Making yum quiet - yum.logginglevels.setDebugLevel(0) seemingly not working...
>
> On Thu, 11 Jun 2009, MacCana, Mike \(London\) wrote:
>
>>> Hi folks,
>>>
>>> I'm installing a few packages using yum.YumBase.install in a
>>> postinstall. From the module docs, I gather setDebugLevel(0) should be the equivalent of a yum '--quiet', but alas, the following code...
>
>
>> the debuglevel is for for yum cli output callbacks. You're not using
>> those- so you're getting the default callbacks.
>
>> -sv
>
> Thanks Seth. Is doLoggingSetup() also for the cli only (as I've tried it with the same results)?
>
> How can I modify logging levels for API-level access?
For API level access you really don't set it. You want to make your
logging callback do whatever you want it to do.
-sv
More information about the Yum-devel
mailing list