Fixed incorrect call to logging.debug() that transparently adds a handler to the root logger

Calling `logging.debug()` directly causes a `logging.StreamHandler` to be added to the default root logger `logging.getLogger()`.

This has terrible consequences when one wants to keep control over the handlers of the root logger.

The proposed change fixes that issues while keeping the log output if needed.