Re: [libvirt] [PATCH] virutil: Introduce virGetHostnameSimple()

2018-02-12 Thread Michal Privoznik
On 02/12/2018 11:42 AM, Daniel P. Berrangé wrote: > On Mon, Feb 12, 2018 at 11:29:21AM +0100, Michal Privoznik wrote: >> After 759b4d1b0fe5f we are getting hostname in virLogOnceInit(). >> Problem with this approach is in the NSS module because the >> module calls some internal APIs which

Re: [libvirt] [PATCH] virutil: Introduce virGetHostnameSimple()

2018-02-12 Thread Daniel P . Berrangé
On Mon, Feb 12, 2018 at 11:29:21AM +0100, Michal Privoznik wrote: > After 759b4d1b0fe5f we are getting hostname in virLogOnceInit(). > Problem with this approach is in the NSS module because the > module calls some internal APIs which occasionally want to log > something. This results in

[libvirt] [PATCH] virutil: Introduce virGetHostnameSimple()

2018-02-12 Thread Michal Privoznik
After 759b4d1b0fe5f we are getting hostname in virLogOnceInit(). Problem with this approach is in the NSS module because the module calls some internal APIs which occasionally want to log something. This results in virLogInitialize() to be called which in turn ends up calling virGetHostnameQuiet()