From bbcc123e4e93bdf51aa3669e01186f402285f01a Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Tue, 9 Feb 2021 08:03:30 +1100 Subject: [PATCH] Updated drawing to console.log errors instead of Sentry log --- src/helpers/drawing.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/helpers/drawing.js b/src/helpers/drawing.js index 05ddb68..3deef0c 100644 --- a/src/helpers/drawing.js +++ b/src/helpers/drawing.js @@ -3,7 +3,6 @@ import polygonClipping from "polygon-clipping"; import * as Vector2 from "./vector2"; import { toDegrees, omit } from "./shared"; -import { logError } from "./logging"; const snappingThreshold = 1 / 5; export function getBrushPositionForTool( @@ -263,13 +262,7 @@ export function drawActionsToShapes(actions, actionIndex) { addPolygonDifferenceToShapes(shape, difference, cutShapes); addPolygonIntersectionToShapes(shape, intersection, cutShapes); } catch { - logError( - new Error( - `Unable to find segment for shapes ${JSON.stringify( - shape - )} and ${JSON.stringify(action)}` - ) - ); + console.error("Unable to cut shapes"); } } shapesById = cutShapes; @@ -357,7 +350,7 @@ export function mergeShapes(shapes) { } return merged; } catch { - logError(new Error(`Unable to merge shapes ${JSON.stringify(shapes)}`)); + console.error("Unable to merge shapes"); return shapes; } }