AOSSIE-Org / AOSSIE-Org/Agora-Blockchain

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

Aperta
#174 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
97
Fork
199
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.