AOSSIE-Org / AOSSIE-Org/Agora-Blockchain

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

Offen
#174 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
97
Forks
199
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.