You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returns a new logger each time with the level set to ERROR, but it is used in other Loggable methods as if it were a property of the Loggable object.
For instance, in Loggable.set_level where each subsequent call to self.logger is a new logger.
With
which means none of this is doing what it looks like it is doing.
I think Loggable either needs to be a factory, in which case it should store the parameters for loggers and handlers.
Or, it should manage a single logger object with its handlers.
The text was updated successfully, but these errors were encountered:
There are tests in
test_loggable.py
that are failing.The root cause seems to be that
Loggable.logger
pydent/pydent/utils/loggable/__init__.py
Line 155 in 63dbf01
returns a new logger each time with the level set to ERROR, but it is used in other
Loggable
methods as if it were a property of theLoggable
object.For instance, in
Loggable.set_level
where each subsequent call toself.logger
is a new logger.With
pydent/pydent/utils/loggable/__init__.py
Line 201 in 63dbf01
followed immediately by
pydent/pydent/utils/loggable/__init__.py
Line 202 in 63dbf01
which means none of this is doing what it looks like it is doing.
I think
Loggable
either needs to be a factory, in which case it should store the parameters for loggers and handlers.Or, it should manage a single logger object with its handlers.
The text was updated successfully, but these errors were encountered: