gjoseph92 / stackstac

Turn a STAC catalog into a dask-based xarray
https://stackstac.readthedocs.io
MIT License
238 stars 49 forks source link

Is there a way to reduce the logging verbosity? #185

Closed jorge-cervest closed 1 year ago

jorge-cervest commented 1 year ago

Currently when stacking a large collection, I get lots of INFO:stackstac.timer:Read messages. I feel this should be a DEBUG level so I can filter it out.

Is there anyway to control this behaviour?

jorge-cervest commented 1 year ago

I just ended up setting the level at the logger logging.getLogger('stackstac').setLevel(logging.ERROR)

gjoseph92 commented 1 year ago

Thanks for mentioning this. You're right that those should be switched to debug level. (Or removed entirely.)

Want to make a PR changing the default here to debug? https://github.com/gjoseph92/stackstac/blob/71a8362d98ef002de7e32bef8f1ea013a6964b49/stackstac/timer.py#L9

jorge-cervest commented 1 year ago

Done https://github.com/gjoseph92/stackstac/pull/186