[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] [PATCH] Fix logging in libvirt_lxc controller
- From: Cole Robinson <crobinso redhat com>
- To: Amy Griffis <amy griffis hp com>
- Cc: libvirt-list redhat com
- Subject: Re: [libvirt] [PATCH] Fix logging in libvirt_lxc controller
- Date: Tue, 16 Jun 2009 14:44:28 -0400
On 06/16/2009 01:35 PM, Amy Griffis wrote:
> The lxc controller can't see libvirtd's log level setting so it
> needs to re-query it from the environment. The parsing code has
> a few users now, so I added a new function to the internal API,
> virLogParseDefaultPriority() along the lines of the other parse
> functions.
>
I'd say go the extra step and add something like virLogSetFromEnv, which
encapsulates the duplicate getenv calls as well.
There is also another duplicate of this code in tests/eventtest.c.
Thanks,
Cole
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]