AOSSIE-Org / AOSSIE-Org/Agora-Blockchain

[Enhancement]: Code Quality: Remove Debug Console Statements from Production Code

Open
#174 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
97
Forks
199
PR merge metrics
No merged PRs in 30d

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Issue Description ✍️

## 📌 Issue Summary
There are **12+ console.log, console.error, and console.warn** statements left in the production code across multiple files in the client application. These need to be cleaned up.

**Why This Matters:**

1.Console statements clutter the browser console for users
2.They can expose internal application details
3.Makes the codebase look unprofessional

**Files Affected**

client/app/helpers/pinToIPFS.ts - **2-3 console statements**
client/app/helpers/ErrorMessage.ts - **1-2 console statements**
client/app/create/page.tsx - **2-3 console statements**
client/app/components/Modal/Vote.tsx - **2-3 console statements**
Several other files in client/app/ - **4-6 more statements**

Total: Around 12+ instances

## 💡 Suggestions
_Two options:_
**Option 1:** Simple removal - Just delete the debug console statements that aren't needed
**Option 2:** Use a **logging library** - Replace with something like loglevel that can be configured per environment.

### Record

- [x] I have synced all my node versions as mentioned in the project
- [x] I am using the same version of npm as is the project
- [x] My current branch is in sync with the development branch
- [x] I want to work on this issue

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.