Skip to content

fix : added console.error logging in useTasks error handlers - #2041

Open
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:fix/useTasks-console-error
Open

fix : added console.error logging in useTasks error handlers#2041
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:fix/useTasks-console-error

Conversation

@tmdeveloper007

Copy link
Copy Markdown

Summary of What Has Been Done

The useTasks.js hook had console.log calls in several error-handling code paths. All three error-reporting console.log calls have been replaced with console.error for proper production error tracking.

Changes Made

  1. frontend/src/hooks/useTasks.js line 55: console.log -> console.error in the getTasks catch block.
  2. frontend/src/hooks/useTasks.js lines 79-84: Both console.log calls replaced with console.error in the addTask catch block.
  3. frontend/src/hooks/useTasks.js line 117: console.log -> console.error in the updateTask API call catch block.

Impact it Made

  • Errors in task loading, creation, and updates are now properly surfaced in browser developer consoles and production error tracking tools.
  • Follows the established console.error pattern used elsewhere in the codebase.

Closes #2030

Note: Please assign this PR to the tmdeveloper007 account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug : add console.error logging in useTasks error handlers

1 participant