rain-fighters / AudioPick

A Chrome Extension to pick a preferred audio output device for HTML5 audio and video elements
https://rain-fighters.github.io/AudioPick/
GNU General Public License v3.0
94 stars 21 forks source link

Please Suppress Console output! #14

Closed jjspace closed 6 months ago

jjspace commented 6 years ago

Can you please add a setting to suppress console output or remove it entirely?

I'm a web developer myself and I find it very annoying when I open DevTools on a page and see a ton of messages from AudioPicker. I totally understand if they were added as a form of debugging (which is why you could add a setting) but they are not useful in general and just cause clutter.

necropola commented 6 years ago

Will have a look. Probably make enabling/disabling diagnostic output an option.

jjspace commented 6 years ago

I spent some time looking into this myself and I came up with 2 solutions. Either you can change the log() function in content.js to check for a debug setting to be true. Or you can convert that same function to log to the background like all the other js files. I'm not sure what your initial intent was so maybe this was just overlooked and was actually the intended behavior?

Regardless, thanks for looking into it!

Ancyker commented 5 years ago

+1

As a developer, this is really annoying because it clutters up my console logs.

gopa2000 commented 4 years ago

+1

Web developer here as well, I realise that this issue is a bit old but I'd appreciate it if the console output could be suppressed.