mattpodolak/pmaw

Is there a way to turn off log response?

Closed this issue · 3 comments

Hi, is there a way to turn off the log response?

I0317 17:36:13.663935 139656604510016 PushshiftAPIBase.py:141] Remaining limit 2852
I0317 17:36:14.613399 139656604510016 PushshiftAPIBase.py:141] Remaining limit 2771
I0317 17:36:16.100443 139656604510016 PushshiftAPIBase.py:141] Remaining limit 2700
I0317 17:36:16.821416 139656604510016 PushshiftAPIBase.py:141] Remaining limit 2626
I0317 17:36:17.709720 139656604510016 PushshiftAPIBase.py:141] Remaining limit 2555
I0317 17:36:19.522857 139656604510016 PushshiftAPIBase.py:141] Remaining limit 2495
I0317 17:36:20.668120 139656604510016 PushshiftAPIBase.py:141] Remaining limit 2439

Hi @turmeric-blend, why do you need to remove to suppress the info logs? The only way to "turn off" the log response right now would be to change your log level to WARN

I may consider moving some of these to the DEBUG level.

For me I do have other logs that I want to see so this particular one pushes my other logs out of the terminal which is not ideal. Maybe it would be nice to have an option for this. Thanks!

Reduced unnecessary INFO and DEBUG logging in v1.0.5