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 49341e1 commit ceba992
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(f"Running transform for {type(self).__name__} ({method.__name__})")
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 ceba992

Please sign in to comment.