david-caro / python-foreman

Small low level python wrapper around Foreman API
GNU General Public License v2.0
57 stars 37 forks source link

use a specific logger #55

Open iakovgan opened 8 years ago

iakovgan commented 8 years ago

I have constatly a warning message:

Thereis a conflit trying to redefine method"

I do not use concerned functionality and i would like just to disable this message. This would be easy if python-foreman uses a specific "foreman" logger (logger = logging.getLogger(__name__)) and not a general 'root' (logging). So that user can specify the level of verbosity and supress warning on his own risk.

ex: https://github.com/david-caro/python-foreman/blob/4f3ee2fd5b10b1d160d08773be8a271e27535fc9/foreman/client.py#L324

david-caro commented 8 years ago

related to #54

david-caro commented 8 years ago

Should be fixed by #56

david-caro commented 8 years ago

Let me know if that works for you

pief commented 8 years ago

Also see #63 now.