mirror of https://gitee.com/openkylin/libvirt.git
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) {
|
||||
filterstr = virLogGetFilters();
|
||||
if (!filterstr) {
|
||||
virReportOOMError();
|
||||
goto error;
|
||||
}
|
||||
|
||||
virCommandAddEnvPair(cmd, "LIBVIRT_LOG_FILTERS", filterstr);
|
||||
}
|
||||
|
||||
if (cfg->log_libvirtd) {
|
||||
if (virLogGetNbOutputs() > 0) {
|
||||
outputstr = virLogGetOutputs();
|
||||
if (!outputstr) {
|
||||
virReportOOMError();
|
||||
if (!(outputstr = virLogGetOutputs()))
|
||||
goto error;
|
||||
}
|
||||
|
||||
virCommandAddEnvPair(cmd, "LIBVIRT_LOG_OUTPUTS", outputstr);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue