jldbc / jldbc/pybaseball

Refactor Print statements to use python logging module

Open
#387 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
1.7k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

Whenever I go to fetch data from a statcast function, there is a print statement that is being run ([example](https://github.com/jldbc/pybaseball/blob/e94093b3985f4bbfa88b3c413f16391686163abd/pybaseball/utils.py#L284C1-L284C1)). This is clogging up my output and it would be better if the [python logging module](https://docs.python.org/3/library/logging.html) was used instead so it can be easily disabled. There are print statements in a few places that should also be changed. This will allow the introduction of log levels as well.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.