the-library-code / dspace-rest-python

DSpace REST API Client Library
BSD 3-Clause "New" or "Revised" License
24 stars 19 forks source link

Client module should never print to STDOUT and use logging consistently #12

Closed kshepherd closed 7 months ago

kshepherd commented 7 months ago

There are some inconsistencies in where/how the client module sends warnings, errors, state output. It should use logging everywhere (with a simple basic config) but there are still some print() statements that result in lots of stdout messages when refreshing tokens, etc.

We also need to ensure (and provide example) that logging (level, writer, etc) can be configured in the calling script

kshepherd commented 7 months ago

Resolved at version 0.1.9 PyPI (https://pypi.org/project/dspace-rest-client/0.1.9/) Git tag here: https://github.com/the-library-code/dspace-rest-python/tree/dspace-rest-client-0.1.9