mirror of https://gitee.com/openkylin/libvirt.git
Don't initialize logging twice in libvirtd
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>
This commit is contained in:
parent
e8fd8757c8
commit
90af1babd4
|
@ -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], '/');
|
||||
|
|
Loading…
Reference in New Issue