Make exceptions less noisy
See original GitHub issueIn 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:
- Created 4 years ago
- Reactions:1
- Comments:29 (29 by maintainers)
Top 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 >
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 Free
Top 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
#5467
@kroitor #5494