Previous logging configuration should be checked against `logging.root.handlers`. Refs #3155
Merge pull request #3192 from s0undt3ch/issues/3155

Previous logging configuration should be checked against `logging.root.handlers`. Refs #3155