[BUG] Violation warnings in verbose level chrome dev tools logging
See original GitHub issueExpected Behavior
Expect Chart.js to not cause logs in dev console
Current Behavior
touchstart and touchend event listeners log verbose level [Violation] messages (see below).
Possible Solution
addEventListener can now take a map {"passive": "true"}
see the MDN entry
Steps to Reproduce (for bugs)
- Go to the unedited codepen: https://codepen.io/pen?template=JXVYzq
- Open chrome dev tools console and set log level to verbose
- Refresh page
- See verbose log in console:
[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. Chart.bundle.min.js:14
Context
It’s helpful to have verbose logging turned on in development because chrome will warn you when javascript execution locks up the browser. Having Chart.js warnings comingled with application logs reduces signal to noise.
Environment
- Chart.js version: tried in 2.0/2.5/2.6
- Browser name and version: Chrome OSX Version 58.0.3029.110 (64-bit)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Log messages in the Console - Chrome Developers
Learn how to log messages to the Console. ... method is assigned a severity level: Verbose , Info , Warning , or Error...
Read more >[BUG] Violation warnings in verbose level chrome dev tools logging
Coming soon: A brand new website interface for an even better experience!
Read more >Hide warning messages in console window - Stack Overflow
Have you tried just using console.error , and changing the level of your log to error ? At least in Chrome, I don't...
Read more >Chrome Browser debug logs - Google Support
Chrome Browser debug logs. You can troubleshoot problems with Chrome Browser, such as hanging tabs and error messages. Use debug logs to help...
Read more >Console Violations - Chrome DevTools - Dev Tips
Click the 'Default levels' dropdown in the Console Panel and select 'Verbose'; Type in violation in the Console Panel filter box. Violations can ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
When will this be released? It seems like quite a long time between that fix and the release…
Very soon: #4706