Skip to content

Commit

Permalink
⚡ Avoid f-string when logging
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoPerrier committed Sep 5, 2024
1 parent ceba992 commit 020489a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion melusine/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def transform(self, df: MelusineDataset) -> MelusineDataset:
return_cols.append(self.debug_dict_col)

for method in self.transform_methods:
logger.debug("Running transform for %s (%s)", type(self).__name__, getattr(method, "name", "unnamed"))
logger.debug("Running transform for %s (%s)", type(self).__name__, getattr(method, "__name__", "unnamed"))
first_arg_name: str = list(inspect.signature(method).parameters)[0]

if first_arg_name == "row":
Expand Down

0 comments on commit 020489a

Please sign in to comment.