Skip to content

The agent engineering platform.

[Core] Fix fstring in logger warning (#24043)

William FH1e1fd30defdb
diff --git a/libs/core/langchain_core/callbacks/manager.py b/libs/core/langchain_core/callbacks/manager.py
index 80d785ed12..b9c178bb2d 100644
--- a/libs/core/langchain_core/callbacks/manager.py
+++ b/libs/core/langchain_core/callbacks/manager.py
@@ -2137,7 +2137,7 @@ def _configure(
logger.warning(
"Unable to load requested LangChainTracer."
" To disable this warning,"
- " unset the LANGCHAIN_TRACING_V2 environment variables.",
+ " unset the LANGCHAIN_TRACING_V2 environment variables.\n"
f"{repr(e)}",
)
if run_tree is not None: