mirror of https://gitee.com/openkylin/libvirt.git
util: json: Don't bother logging output string in virJSONValueToString
We have tests that validate the XML formatter. Additionally almost every guide tells users to disable JSON logging. Drop logging of output string in virJSONValueToString. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Laine Stump <laine@laine.org>
This commit is contained in:
parent
6a604f759d
commit
cfe6cecdca
|
@ -2048,16 +2048,11 @@ virJSONValueToString(virJSONValuePtr object,
|
|||
bool pretty)
|
||||
{
|
||||
VIR_AUTOCLEAN(virBuffer) buf = VIR_BUFFER_INITIALIZER;
|
||||
char *ret = NULL;
|
||||
|
||||
if (virJSONValueToBuffer(object, &buf, pretty) < 0)
|
||||
return NULL;
|
||||
|
||||
ret = virBufferContentAndReset(&buf);
|
||||
|
||||
VIR_DEBUG("result=%s", NULLSTR(ret));
|
||||
|
||||
return ret;
|
||||
return virBufferContentAndReset(&buf);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue