chore(python-sdk): Do not set log level directly in the SDK #5079
SupraSummus
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
Hi @SupraSummus, thanks for raising this. I've moved this to gh discussions as this is where we collect all ideas relating to improvements to langfuse. @hassiebp wdyt? I see how this would impact other teams that want a very simple integration and would not appreciate to see all debug logs logged by the python sdk |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that the langfuse SDK sets the log level directly during initialization
https://github.com/langfuse/langfuse-python/blob/7d7e94127f7d469a0ec530820f3f7e407d663e3e/langfuse/client.py#L281-L282
It would be better to document the recommended logging level and let users configure it according to their needs rather than setting it directly in the SDK.
For example in a standard Django project, logging is typically configured before all the code is loaded. When I load the Langfuse SDK my config gets overridden.
Thank you for considering this suggestion.
Beta Was this translation helpful? Give feedback.
All reactions