Skip to content

Commit

Permalink
Replaced console.error with log()
Browse files Browse the repository at this point in the history
  • Loading branch information
blonde-mike committed Dec 19, 2024
1 parent 80ef706 commit bd98bf8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { LogLevel, log } from "../../util/log";
import React from "react";

export interface RequestBodyViewProps {
Expand Down Expand Up @@ -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);
}
};

Expand Down

0 comments on commit bd98bf8

Please sign in to comment.