From 09cf8618bc581e30a4ad369e21e23758791c8e12 Mon Sep 17 00:00:00 2001 From: zayd100 Date: Sun, 31 May 2026 05:08:11 +0500 Subject: [PATCH] fix: replace console.log with logger in error-boundary --- components/ui/error-boundary.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ui/error-boundary.tsx b/components/ui/error-boundary.tsx index f799310..bc94e73 100644 --- a/components/ui/error-boundary.tsx +++ b/components/ui/error-boundary.tsx @@ -143,9 +143,9 @@ export class ErrorBoundary extends Component { toast.success('Debug information copied to clipboard'); }) .catch(() => { - console.log('Debug information:', debugInfo); - toast.info('Debug information logged to console'); - }); + logger.debug('Debug information', { ...debugInfo, component: this.props.component || 'Unknown' }); + toast.info('Debug information logged to console'); +}); }; render() {