From de82eb6c55f9f9ad9a7c98f1521b2ae83fcfbe89 Mon Sep 17 00:00:00 2001 From: Adrien Date: Mon, 8 May 2023 17:25:14 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A=20Reformat=20error=20logs=20genera?= =?UTF-8?q?ted=20by=20frontend=20BusinessData=20class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/businessData.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/src/businessData.tsx b/frontend/src/businessData.tsx index 149aa44..89c73d3 100644 --- a/frontend/src/businessData.tsx +++ b/frontend/src/businessData.tsx @@ -56,10 +56,8 @@ export function BusinessDataProvider(props: { children: JSX.Element }) { line = json; } else { - console.warn(`No line found for ${lineId} line id (${json}).`); + console.warn(`No line found for ${lineId} line id:`, json); } - - } return line; } @@ -113,7 +111,7 @@ export function BusinessDataProvider(props: { children: JSX.Element }) { addPassages(json.passages); } else { - console.warn(`No passage found for ${stopId} stop (${json}).`); + console.warn(`No passage found for ${stopId} stop:`, json); } } @@ -194,7 +192,7 @@ ${linePassagesDestination.length} here... refresh all them.`); } } else { - console.warn(`No stop found for '${name}' (${json}).`); + console.warn(`No stop found for '${name}' query:`, json); } return byIdStops; @@ -223,7 +221,7 @@ ${linePassagesDestination.length} here... refresh all them.`); shape = json; } else { - console.warn(`No shape found for ${stopId} stop (${json}).`); + console.warn(`No shape found for ${stopId} stop:`, json); } } return shape;