1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-20 06:50:22 +03:00

storage: Add debug logs for storage pool config loading

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2022-01-20 11:33:46 +01:00
parent 755b16d10a
commit 7cf5b88338
2 changed files with 6 additions and 0 deletions

View File

@ -1614,6 +1614,8 @@ virStoragePoolObjLoad(virStoragePoolObjList *pools,
virStoragePoolObj *obj;
g_autoptr(virStoragePoolDef) def = NULL;
VIR_DEBUG("loading storage pool config XML '%s'", path);
if (!(def = virStoragePoolDefParseFile(path)))
return NULL;
@ -1655,6 +1657,8 @@ virStoragePoolObjLoadState(virStoragePoolObjList *pools,
if (!(stateFile = virFileBuildPath(stateDir, name, ".xml")))
return NULL;
VIR_DEBUG("loading storage pool state XML '%s'", stateFile);
if (!(xml = virXMLParseCtxt(stateFile, NULL, _("(pool state)"), &ctxt)))
return NULL;

View File

@ -156,6 +156,8 @@ storagePoolUpdateStateCallback(virStoragePoolObj *obj,
active = false;
}
VIR_DEBUG("updating state of storage pool '%s' active=%d", def->name, active);
/* We can pass NULL as connection, most backends do not use
* it anyway, but if they do and fail, we want to log error and
* continue with other pools.