Re: [PATCH v2 06/10] admin: Introduce virAdmConnectSetLoggingOutputs

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

 



On Fri, Dec 09, 2016 at 07:12:38AM -0500, John Ferlan wrote:
> 
> 
> On 11/25/2016 08:12 AM, Erik Skultety wrote:
> > Enable libvirt users to modify daemon's logging output settings from outside.
> > If either an empty string or NULL is passed, a default logging output will be
> > used the same way as it would be in case writing an empty string to the
> > libvirtd.conf
> > 
> > Signed-off-by: Erik Skultety <eskultet@xxxxxxxxxx>
> > ---
> >  daemon/admin.c                  | 10 ++++++++++
> >  include/libvirt/libvirt-admin.h |  4 ++++
> >  src/admin/admin_protocol.x      | 12 +++++++++++-
> >  src/admin_protocol-structs      |  5 +++++
> >  src/libvirt-admin.c             | 38 ++++++++++++++++++++++++++++++++++++++
> >  src/libvirt_admin_private.syms  |  1 +
> >  src/libvirt_admin_public.syms   |  1 +
> >  7 files changed, 70 insertions(+), 1 deletion(-)
> > 
> 
> [...]
> 
> > diff --git a/src/libvirt_admin_public.syms b/src/libvirt_admin_public.syms
> > index 234c50e..d4713da 100644
> > --- a/src/libvirt_admin_public.syms
> > +++ b/src/libvirt_admin_public.syms
> > @@ -44,4 +44,5 @@ LIBVIRT_ADMIN_2.5.0 {
> >      global:
> >          virAdmConnectGetLoggingOutputs;
> >          virAdmConnectGetLoggingFilters;
> > +        virAdmConnectSetLoggingOutputs;
> >  } LIBVIRT_ADMIN_2.0.0;
> > 
> 
> s/2.5.0/3.0.0
> 
> Of course makes me think "eventually" would someone want or find it
> useful to have "Add" or "Remove" options too rather than just wholesale
> replacement... Maybe it's just the fresh coffee talking.

I thought about this a while back and yes, I can imagine someone wanting that,
but at the same I think we should not push features that nobody has a usecase
for because you know, just in case...So, sure, we can add that easily, it just
isn't urgent IMHO.

Erik

> 
> ACK
> 
> John

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux