Skip to content

Commit

Permalink
adding hint to logger error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Al3xDo committed Dec 14, 2022
1 parent ca67474 commit 120d037
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def check_logging(cls, fx_name: str) -> None:
)

if cls.functions[fx_name] is None:
raise MisconfigurationException(f"You can't `self.log()` inside `{fx_name}`.")
raise MisconfigurationException(f"You can't `self.log()` inside `{fx_name}`. HINT: You can still log directly to the logger by using `self.logger.experiment`.")

@classmethod
def get_default_logging_levels(
Expand Down

0 comments on commit 120d037

Please sign in to comment.