Skip to content

Commit

Permalink
fix: importing wakepy messes up logging
Browse files Browse the repository at this point in the history
  • Loading branch information
fohrloop committed Jun 4, 2024
1 parent 0d907f7 commit 5b46d40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wakepy/core/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ def register_method(method_class: Type[Method]) -> None:

if method_class.is_unnamed():
# Methods without a name will not be registered
logging.debug(
logger.debug(
"Not registering Method %s as it does not have a name set.", method_class
)
return

logging.debug("Registering Method %s (name: %s)", method_class, method_class.name)
logger.debug("Registering Method %s (name: %s)", method_class, method_class.name)

method_dict: MethodDict = _method_registry.get(method_class.mode_name, dict())

Expand Down

0 comments on commit 5b46d40

Please sign in to comment.