question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Violation warnings in verbose level chrome dev tools logging

See original GitHub issue

Expected 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)

  1. Go to the unedited codepen: https://codepen.io/pen?template=JXVYzq
  2. Open chrome dev tools console and set log level to verbose
  3. Refresh page
  4. 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:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
burkacommented, Aug 31, 2017

When will this be released? It seems like quite a long time between that fix and the release…

0reactions
simonbrunelcommented, Sep 1, 2017

Very soon: #4706

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found