Skip to content

Conversation

@widike
Copy link
Contributor

@widike widike commented Sep 3, 2024

Updated deprecated logging warning

langfuse_decorator.py:788: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
self._log.warn("No observation found in the current context")

langfuse_decorator.py:788: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  self._log.warn("No observation found in the current context")
@CLAassistant
Copy link

CLAassistant commented Sep 3, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disclaimer: Experimental PR review

PR Summary

Updated the deprecated logging method from warn to warning in langfuse/decorators/langfuse_decorator.py to address a DeprecationWarning.

  • Changed self._log.warn() to self._log.warning() to align with current logging best practices
  • This minor update eliminates deprecation warnings in the codebase
  • Improves code maintainability by using up-to-date logging methods

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@marcklingen
Copy link
Member

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants