iamkubi / pydactyl

Python wrapper for the Pterodactyl Panel API
MIT License
69 stars 21 forks source link

Update api_client.py #73

Closed devmaxde closed 1 year ago

devmaxde commented 1 year ago

Don't touch the global logger. Only update the loglevel, if you want to debug it. My Loglevel is set to info. But your Package keeps overriding it :/

devmaxde commented 1 year ago

Not tested btw

iamkubi commented 1 year ago

So the reason this check was added was because if you created a client with debug logging enabled and then created a new client with debug logging disabled it would stay enabled.

That said, I see how it could disable all requests logging. Will test this and see what the right fix is.

iamkubi commented 1 year ago

I'm going to fix this a different way, but I appreciate the report. Issue created to track it.