diff --git a/guide/results-viewer-react/src/components/YamlUrls/RequestBodyView.tsx b/guide/results-viewer-react/src/components/YamlUrls/RequestBodyView.tsx index 867f6742..7ef86b34 100644 --- a/guide/results-viewer-react/src/components/YamlUrls/RequestBodyView.tsx +++ b/guide/results-viewer-react/src/components/YamlUrls/RequestBodyView.tsx @@ -1,3 +1,4 @@ +import { LogLevel, log } from "../../util/log"; import React from "react"; export interface RequestBodyViewProps { @@ -27,7 +28,7 @@ function RequestBodyView ({ requestBody, updateRequestBody }: RequestBodyViewPro try { updateRequestBody(JSON.parse(newRequestBody)); } catch (error) { - console.error(error); + log("Invalid JSON", LogLevel.WARN, error); } };