Skip to content

Commit 1081793

Browse files
committed
remove setitem logging, this should be handled with a userdict
Signed-off-by: Zen <[email protected]>
1 parent 4e0f8c3 commit 1081793

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "zenlib"
7-
version = "2.2.3"
7+
version = "2.2.4"
88
authors = [
99
{ name="Desultory", email="[email protected]" },
1010
]

src/zenlib/logging/loggify.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
__author__ = "desultory"
2-
__version__ = "2.1.0"
2+
__version__ = "2.2.0"
33

44
from .colorlognameformatter import ColorLognameFormatter
55

66
from logging import Logger, getLogger, StreamHandler
77
from sys import modules
88

99

10-
def setitem_logger(self, name, value):
11-
dict.__setitem__(self, name, value)
12-
self.logger.log(5, "Setitem '%s' to: %s" % (name, value))
13-
14-
1510
def loggify(cls):
1611
def _has_handler(logger):
1712
while logger:
@@ -71,8 +66,4 @@ def __setattr__(self, name, value):
7166
ClassLogger.__module__ = cls.__module__
7267
ClassLogger.__doc__ = cls.__doc__
7368
ClassLogger.__qualname__ = cls.__qualname__
74-
75-
if isinstance(cls, dict):
76-
ClassLogger.__setitem__ = setitem_logger
77-
7869
return ClassLogger

0 commit comments

Comments
 (0)