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.

Make exceptions less noisy

See original GitHub issue

In the meantime all the details of the http- and exchange- errors are included in the exception string:

    def raise_error(self, exception_type, url=None, method=None, error=None, details=None):
        if error:
            error = str(error)
        output = ' '.join([self.id] + [var for var in (url, method, error, details) if var is not None])
        raise exception_type(output)

– the details here includes the http-response came from exchange…

When we handle such exception in the app, this often results in long sheets of html data, even if the logging value is less than DEBUG and the user did not requested this high level of detalization.

The suggestion is to include the value of the details param into the exception string only when the DEBUG logging level is set for ccxt.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:29 (29 by maintainers)

github_iconTop GitHub Comments

3reactions
frosty00commented, Jul 6, 2019
2reactions
frosty00commented, Jul 22, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

6 Ways to Silence Your Noisy Mechanical Keyboard
Mechanical keyboards are loud. Don't like it? Check out these handy noise-reducing mechanical keyboard fixes!
Read more >
Why do Java people frequently consume exceptions silently?
Since checked exceptions force you to deal with them you will have better code overall. (If the Programmer is not ignoring them silently)....
Read more >
How to make exceptions for the Do Not Disturb mode on your ...
Open Settings · Tap “Do Not Disturb” · Toggle Do Not Disturb to “on” · In the Phone section of the screen, tap...
Read more >
Exceptions | Sanic Framework
Sometimes while debugging you may want to globally ignore the quiet=True property. You can force Sanic to log out all exceptions regardless ...
Read more >
Getting to Zero Exceptions - Yeller
Adopt a Zero Exception Policy ... Saying “we will not tolerate exceptions in production” sounds well and good. But how do you actually...
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