]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Don't initialize logging twice in libvirtd
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 27 Sep 2012 16:27:17 +0000 (17:27 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 28 Sep 2012 09:55:25 +0000 (10:55 +0100)
The virInitialize function initializes logging from the env,
so there is no need for another call to virLogSetFromEnv

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
daemon/libvirtd.c

index 01511245962c7a636cb0f6c8391a569f7649ff8b..1ca883afb2c9ce8e3b23d3090644b6cb878e64ed 100644 (file)
@@ -976,9 +976,6 @@ int main(int argc, char **argv) {
         exit(EXIT_FAILURE);
     }
 
-    /* initialize early logging */
-    virLogSetFromEnv();
-
     if (strstr(argv[0], "lt-libvirtd") ||
         strstr(argv[0], "/daemon/.libs/libvirtd")) {
         char *tmp = strrchr(argv[0], '/');