Skip to content

Commit eb2ef6a

Browse files
authored
removed unecessary debug statements (#358)
The bedrock chat model has several logging statements that seem to be left over from someone debugging the code. Some of them result in the entire prompt being logged to the console, cluttering logging of applications leveraging the module. This PR removes said logging statements.
1 parent 10b083a commit eb2ef6a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

libs/aws/langchain_aws/chat_models/bedrock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ def _generate(
529529
return self._as_converse._generate(
530530
messages, stop=stop, run_manager=run_manager, **kwargs
531531
)
532-
logger.info(f"The input message: {messages}")
532+
533533
completion = ""
534534
llm_output: Dict[str, Any] = {}
535535
tool_calls: List[ToolCall] = []

libs/aws/langchain_aws/chat_models/bedrock_converse.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,6 @@ def _generate(
511511
**kwargs: Any,
512512
) -> ChatResult:
513513
"""Top Level call"""
514-
logger.info(f"The input message: {messages}")
515514
bedrock_messages, system = _messages_to_bedrock(messages)
516515
logger.debug(f"input message to bedrock: {bedrock_messages}")
517516
logger.debug(f"System message to bedrock: {system}")

0 commit comments

Comments
 (0)