Commit d9e930c
committed
Set a more sane default log level
Logging /alone/ takes 50%+ of HTTPS Everywhere's profile time in Chrome (!)
Chrome will log & buffer console.log() even when the console is closed.
This means that for 99.9% of users (who never open the console), Chrome wastes
staggering amounts of time logging and buffering extremely verbose data.
For now, this just sets a default log level and includes adds the .warn() function.
TODO (Upcoming commit): Add a UI element to change the default log level.
Developers can simply type (in the console): DEFAULT_LOG_LEVEL=1;
Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>1 parent b81c7fa commit d9e930c
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
6 | 12 | | |
7 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
8 | 20 | | |
0 commit comments