mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
lxc_process: Remove OOM handling from logging setup
'virLogGetFilters' doesn't return failure and 'virLogGetOutputs' reports it's own errors. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
parent
ccac1c2623
commit
e2ac76f707
@ -960,21 +960,14 @@ virLXCProcessBuildControllerCmd(virLXCDriverPtr driver,
|
|||||||
|
|
||||||
if (virLogGetNbFilters() > 0) {
|
if (virLogGetNbFilters() > 0) {
|
||||||
filterstr = virLogGetFilters();
|
filterstr = virLogGetFilters();
|
||||||
if (!filterstr) {
|
|
||||||
virReportOOMError();
|
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
|
|
||||||
virCommandAddEnvPair(cmd, "LIBVIRT_LOG_FILTERS", filterstr);
|
virCommandAddEnvPair(cmd, "LIBVIRT_LOG_FILTERS", filterstr);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cfg->log_libvirtd) {
|
if (cfg->log_libvirtd) {
|
||||||
if (virLogGetNbOutputs() > 0) {
|
if (virLogGetNbOutputs() > 0) {
|
||||||
outputstr = virLogGetOutputs();
|
if (!(outputstr = virLogGetOutputs()))
|
||||||
if (!outputstr) {
|
|
||||||
virReportOOMError();
|
|
||||||
goto error;
|
goto error;
|
||||||
}
|
|
||||||
|
|
||||||
virCommandAddEnvPair(cmd, "LIBVIRT_LOG_OUTPUTS", outputstr);
|
virCommandAddEnvPair(cmd, "LIBVIRT_LOG_OUTPUTS", outputstr);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user