iv-org / inv_sig_helper

GNU Affero General Public License v3.0
29 stars 9 forks source link

Implement logging #24

Closed friedkiwi closed 1 month ago

friedkiwi commented 1 month ago

This PR changes all the println invocations to appropriate calls from the log crate.

I've also restored the commented-out print statements used historically for debugging and replaced them with debug! macro invocations so an end-user can re-enable them for troubleshooting purposes.

I've used the env_logger crate as an implementation for the log crate since it's simple and implements the RUST_LOG environment variable handling the way it is documented in the docker-compose file.

I've tested this PR on my own private invidious instance.