From 61fe46b3c31221b29d55ebc0d63a60dff92fcb8b Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Wed, 24 Jul 2024 10:14:31 -0700 Subject: [PATCH] Fix typo --- langchain-core/src/callbacks/manager.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/langchain-core/src/callbacks/manager.ts b/langchain-core/src/callbacks/manager.ts index a28ba3f9a1e3..9a6cbe9405cf 100644 --- a/langchain-core/src/callbacks/manager.ts +++ b/langchain-core/src/callbacks/manager.ts @@ -27,8 +27,7 @@ if ( /* #__PURE__ */ getEnvironmentVariable("LANGCHAIN_CALLBACKS_BACKGROUND") !== "true" ) { - const logFunction = handler.raiseError ? console.error : console.warn; - /* #__PURE__ */ logFunction( + /* #__PURE__ */ console.warn( [ "[WARN]: You have enabled LangSmith tracing without backgrounding callbacks.", "[WARN]: If you are not using a serverless environment where you must wait for tracing calls to finish,",