mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 01:43:23 +00:00
Print errors on daemon startup if logging setup fails
Fixes: a873924e36
https://bugzilla.redhat.com/show_bug.cgi?id=2039652
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
d0198641bf
commit
537b51daeb
@ -919,8 +919,10 @@ int main(int argc, char **argv) {
|
|||||||
config->log_outputs,
|
config->log_outputs,
|
||||||
privileged,
|
privileged,
|
||||||
verbose,
|
verbose,
|
||||||
godaemon) < 0)
|
godaemon) < 0) {
|
||||||
|
virDispatchError(NULL);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
if (!pid_file &&
|
if (!pid_file &&
|
||||||
virPidFileConstructPath(privileged,
|
virPidFileConstructPath(privileged,
|
||||||
|
@ -725,8 +725,10 @@ int main(int argc, char **argv) {
|
|||||||
config->log_outputs,
|
config->log_outputs,
|
||||||
privileged,
|
privileged,
|
||||||
verbose,
|
verbose,
|
||||||
godaemon) < 0)
|
godaemon) < 0) {
|
||||||
|
virDispatchError(NULL);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
if (!pid_file &&
|
if (!pid_file &&
|
||||||
virPidFileConstructPath(privileged,
|
virPidFileConstructPath(privileged,
|
||||||
|
@ -940,8 +940,10 @@ int main(int argc, char **argv) {
|
|||||||
config->log_outputs,
|
config->log_outputs,
|
||||||
privileged,
|
privileged,
|
||||||
verbose,
|
verbose,
|
||||||
godaemon) < 0)
|
godaemon) < 0) {
|
||||||
|
virDispatchError(NULL);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
/* Let's try to initialize global variable that holds the host's boot time. */
|
/* Let's try to initialize global variable that holds the host's boot time. */
|
||||||
if (virHostBootTimeInit() < 0) {
|
if (virHostBootTimeInit() < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user