diff --git a/git/cmd.py b/git/cmd.py index 84f929ac6..7c9c89737 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -82,7 +82,6 @@ } _logger = logging.getLogger(__name__) -_logger.addHandler(logging.NullHandler()) __all__ = ("Git",) diff --git a/git/config.py b/git/config.py index ba1666404..85f754197 100644 --- a/git/config.py +++ b/git/config.py @@ -60,10 +60,7 @@ __all__ = ("GitConfigParser", "SectionConstraint") - _logger = logging.getLogger(__name__) -_logger.addHandler(logging.NullHandler()) - CONFIG_LEVELS: ConfigLevels_Tup = ("system", "user", "global", "repository") """The configuration level of a configuration file.""" diff --git a/git/objects/commit.py b/git/objects/commit.py index 50e7f6d59..caec1b6c4 100644 --- a/git/objects/commit.py +++ b/git/objects/commit.py @@ -53,7 +53,6 @@ # ------------------------------------------------------------------------ _logger = logging.getLogger(__name__) -_logger.addHandler(logging.NullHandler()) __all__ = ("Commit",) diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py index d8011f14a..d08e967b8 100644 --- a/git/objects/submodule/base.py +++ b/git/objects/submodule/base.py @@ -40,6 +40,7 @@ # typing ---------------------------------------------------------------------- + from typing import Callable, Dict, Mapping, Sequence, TYPE_CHECKING, cast from typing import Any, Iterator, Union @@ -50,14 +51,11 @@ from git.repo import Repo from git.refs import Head - # ----------------------------------------------------------------------------- __all__ = ["Submodule", "UpdateProgress"] - _logger = logging.getLogger(__name__) -_logger.addHandler(logging.NullHandler()) class UpdateProgress(RemoteProgress): diff --git a/git/objects/submodule/root.py b/git/objects/submodule/root.py index e48c0d633..dde384bbe 100644 --- a/git/objects/submodule/root.py +++ b/git/objects/submodule/root.py @@ -23,7 +23,6 @@ __all__ = ["RootModule", "RootUpdateProgress"] _logger = logging.getLogger(__name__) -_logger.addHandler(logging.NullHandler()) class RootUpdateProgress(UpdateProgress): diff --git a/git/remote.py b/git/remote.py index eb90fba47..6fc7d1eb9 100644 --- a/git/remote.py +++ b/git/remote.py @@ -64,10 +64,7 @@ # ------------------------------------------------------------- - _logger = logging.getLogger(__name__) -_logger.addHandler(logging.NullHandler()) - __all__ = ("RemoteProgress", "PushInfo", "FetchInfo", "Remote")