To ensure child processes will log all error messages, reset the logging filter function when forking * src/util/util.c: Reset log filter in fork --- src/util/util.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/util/util.c b/src/util/util.c index 78ac168..db2b04d 100644 --- a/src/util/util.c +++ b/src/util/util.c @@ -384,6 +384,7 @@ int virFork(pid_t *pid) { get sent to stderr where they stand a fighting chance of being seen / logged */ virSetErrorFunc(NULL, NULL); + virSetErrorLogPriorityFunc(NULL); /* Make sure any hook logging is sent to stderr, since child * process may close the logfile FDs */ -- 1.7.3.4 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list