Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use specific logger instead of global one
Instead of using global logger, this patch is using dedicate logger named as `libnmstate` for python logging. This allows user to control the logging level of nmstate module only. For example, this python script will disable nmstate logs but still enable debug logging for others: ```python import logging import libnmstate logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger("libnmstate") logger.disabled = True print(libnmstate.show()) logging.debug("DEBUGGING") ``` Resolves: https://issues.redhat.com/browse/RHEL-72016 Signed-off-by: Gris Ge <[email protected]>
- Loading branch information