Skip to content

fix(logger): suppress info and debug logs in production builds#1210

Open
dcmclarke wants to merge 4 commits intoSevenTV:masterfrom
dcmclarke:fix/logger-prod-logs
Open

fix(logger): suppress info and debug logs in production builds#1210
dcmclarke wants to merge 4 commits intoSevenTV:masterfrom
dcmclarke:fix/logger-prod-logs

Conversation

@dcmclarke
Copy link

@dcmclarke dcmclarke commented Mar 15, 2026

Closes #1203

Proposed changes

In prod builds, Logger printing [INFO] and [DEBUG] messages to the browser console, creating unnecessary noise for users and developers. Added a check in the Logger's print method to suppress info and debug level logs when running in a prod build, while keeping warn and error logs visible as these indicate actual problems. Errors and warnings are still shown in all builds as these indicate real issues.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged

Screenshots

Before

before

After

after

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.

[REQUEST] Suppress or allow toggling of debug level console logging in stable builds

1 participant