Log message when erroring on JSON generation