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:
Peter Krempa 2019-03-29 13:48:22 +01:00
parent 6a604f759d
commit cfe6cecdca

View File

@ -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);
}