Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Suppress Kraken API warnings #843

Closed
timstoop opened this issue Dec 12, 2017 · 4 comments
Closed

Suppress Kraken API warnings #843

timstoop opened this issue Dec 12, 2017 · 4 comments

Comments

@timstoop
Copy link

Hi,

Is there an option to suppress the Kraken API warnings? They're messing up my display :/

@MT00x
Copy link
Contributor

MT00x commented Dec 12, 2017

No, and sincerely I think this should not be done.
Continously get some exchange API warnings / errors is a sinthom that using bot is extremely risky and could end with capital loose

@timstoop
Copy link
Author

Having a simple option like "--ignore-warnings-at-my-own-peril" wouldn't be so bad...

@MT00x
Copy link
Contributor

MT00x commented Dec 12, 2017

On your fork or local clone you can change
zenbot/extensions/exchanges/kraken/exchange.js
and comment line 85

console.warn(('\nKraken API warning - unable to call ' + method + ' (' + errorMsg + '), retrying in ' + timeout / 1000 + 's').yellow)

@timstoop
Copy link
Author

I noticed a bit late that the warning are sent to stderr, so simply redirecting fd 2 to /dev/null solves my issue :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants