Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: logging level configuration #280

Merged
merged 4 commits into from
Aug 20, 2021
Merged

feat: logging level configuration #280

merged 4 commits into from
Aug 20, 2021

Conversation

ruslan-khalitov
Copy link
Contributor

Description

The bot is now supports setting minimum logging level that will be printed to console.
Use BINANCE_LOG_LEVEL env variable, value passed to underlying bunyan log lib.
Log levels pretty well described on bunyan page

Related Issue

#262 - will help to reduce CPU overhead

Motivation and Context

Reduce extensive amount of logs firing due to hardcoded TRACE level.
Users are now free to set desired log level in order to reduce CPU and I/O overhead which is critical on tiny machines.
For the reason of backward compatibility default log level will be TRACE if not configured explicitly.

How Has This Been Tested?

Tested by enabling/disabling BINANCE_LOG_LEVEL env variable in docker-compose.rpi.yml.

Screenshots (if appropriate):

@chrisleekr
Copy link
Owner

Hey @ruslan-khalitov

Thanks for the PR. I will merge in.

@chrisleekr chrisleekr merged commit 9119c6d into chrisleekr:master Aug 20, 2021
@ruslan-khalitov ruslan-khalitov deleted the feat/logging-level branch August 22, 2021 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants