From 91c318f36a44182a175bb49e70c35e2b3ed39f6f Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Mon, 28 Aug 2023 00:03:31 +0300 Subject: [PATCH] Cleanup logging --- rsconcept/frontend/src/components/BackendError.tsx | 2 +- rsconcept/frontend/src/components/Common/EmbedYoutube.tsx | 1 - rsconcept/frontend/src/components/ErrorFallback.tsx | 2 +- rsconcept/frontend/src/hooks/useCheckExpression.ts | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/rsconcept/frontend/src/components/BackendError.tsx b/rsconcept/frontend/src/components/BackendError.tsx index 771f66a0..02e7d911 100644 --- a/rsconcept/frontend/src/components/BackendError.tsx +++ b/rsconcept/frontend/src/components/BackendError.tsx @@ -9,7 +9,7 @@ interface BackendErrorProps { } function DescribeError(error: ErrorInfo) { - console.log(error); + reportError(error); if (!error) { return

Ошибки отсутствуют

; } else if (typeof error === 'string') { diff --git a/rsconcept/frontend/src/components/Common/EmbedYoutube.tsx b/rsconcept/frontend/src/components/Common/EmbedYoutube.tsx index bbb4da35..37264450 100644 --- a/rsconcept/frontend/src/components/Common/EmbedYoutube.tsx +++ b/rsconcept/frontend/src/components/Common/EmbedYoutube.tsx @@ -7,7 +7,6 @@ interface EmbedYoutubeProps { function EmbedYoutube({ videoID, pxHeight, pxWidth }: EmbedYoutubeProps) { if (!pxWidth) { pxWidth = pxHeight * 16 / 9; - console.log(pxWidth); } return (

Something went wrong!

diff --git a/rsconcept/frontend/src/hooks/useCheckExpression.ts b/rsconcept/frontend/src/hooks/useCheckExpression.ts index fcb7ba57..fc0f1fc9 100644 --- a/rsconcept/frontend/src/hooks/useCheckExpression.ts +++ b/rsconcept/frontend/src/hooks/useCheckExpression.ts @@ -9,7 +9,6 @@ import { getCstExpressionPrefix } from '../utils/staticUI'; const LOGIC_TYPIIFCATION = 'LOGIC'; function checkTypeConsistency(type: CstType, typification: string, args: IFunctionArg[]): boolean { - console.log(typification) switch (type) { case CstType.BASE: case CstType.CONSTANT: