python-nut2 icon indicating copy to clipboard operation
python-nut2 copied to clipboard

Replace root logger with module-specific one

Open timurlenk07 opened this issue 3 years ago • 1 comments

Logging via the root logger is a discouraged behaviour, since the end-user does not have a way to influence the level and handlers (and other details) of log messages of the specific module. See here.

In this PR, I replace the logging calls with calls on a module level logger instance.

timurlenk07 avatar May 16 '22 19:05 timurlenk07

Hi @rshipp and @george2,

Could any of you please accept this PR ASAP? This way logging level configuration of python-nut2 works as a charm.

pezosanta avatar Jun 20 '22 14:06 pezosanta