Re: [python API] logging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Original Message -----
> From: "tim lauridsen" <tim.lauridsen@xxxxxxxxx>
> To: "Yellowdog Updater, Modified" <yum@xxxxxxxxxxxxxxxxx>
> Sent: Saturday, September 15, 2012 2:29:40 PM
> Subject: Re:  [python API] logging
> 
> 
> 
> 
> 
> On Sat, Sep 15, 2012 at 11:13 AM, Alon Bar-Lev < alonbl@xxxxxxxxxx >
> wrote:
> 
> 
> 
> Thank you Tim!
> 
> The requirement is to have log, but have full control where it
> goes... :)
> 
> Disabling the log completely is not something I like, logs are not
> evil as long as I can control the output location and verbosity.
> 
> Using this and propagate, I still have the following messages to
> stdout:
> ---
> 
> warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID
> fd431d51: NOKEY
> 
> Importing GPG key 0xFD431D51:
> Userid : Red Hat, Inc. (release key 2) < security@xxxxxxxxxx >
> Package: redhat-release-server-6Server-6.3.0.3.el6.x86_64
> (@anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3)
> From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
> Importing GPG key 0xFD431D51:
> Userid : Red Hat, Inc. (release key 2) < security@xxxxxxxxxx >
> Package: redhat-release-server-6Server-6.3.0.3.el6.x86_64
> (@anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3)
> From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
> 
> 
> Package qemu-kvm-tools is obsoleted by qemu-kvm-rhev-tools, trying to
> install 2:qemu-kvm-rhev-tools-0.12.1.2-2.295.el6_3.2.x86_64 instead
> 
> Freeing read locks for locker 0x5: 1228/139804988552960
> Freeing read locks for locker 0x7: 1228/139804988552960
> Freeing read locks for locker 0x8: 1228/139804988552960
> Freeing read locks for locker 0xf: 1228/139804988552960
> Freeing read locks for locker 0x11: 1228/139804988552960
> Freeing read locks for locker 0x12: 1228/139804988552960
> Freeing read locks for locker 0x13: 1228/139804988552960
> Freeing read locks for locker 0x14: 1228/139804988552960
> Freeing read locks for locker 0x15: 1228/139804988552960
> Freeing read locks for locker 0x16: 1228/139804988552960
> Freeing read locks for locker 0x17: 1228/139804988552960
> Freeing read locks for locker 0x2f: 1228/139804988552960
> Freeing read locks for locker 0x31: 1228/139804988552960
> Freeing read locks for locker 0x32: 1228/139804988552960
> 
> Looks like it is something written to sys.stdout and not to the
> logger, Look like output from rpm
> so you need to redirect sys.stdout & sys.stderr to catch all output
> 
> 
> http://stackoverflow.com/questions/6796492/python-temporarily-redirect-stdout-stderr
> 

Yes, done that.

Just wanted heads up so maintainer can fix the API to be more compatible with API use case.

Regards,
Alon Bar-Lev.
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux