Skip to content

Commit

Permalink
Disable printing messages content (#1071)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkuzmik authored Jan 17, 2025
1 parent 79501b1 commit abffddd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions sdks/python/src/opik/logging_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@

FAILED_TO_PARSE_OPENAI_STREAM_CONTENT = "Failed to parse openai Stream content. %s"

FAILED_TO_PROCESS_MESSAGE_IN_BACKGROUND_STREAMER = (
"Failed to process %s. Error: %s,\nContent: %s"
)
FAILED_TO_PROCESS_MESSAGE_IN_BACKGROUND_STREAMER = "Failed to process %s. Error: %s"

HALLUCINATION_DETECTION_FAILED = "Failed hallucination detection"

Expand Down
2 changes: 0 additions & 2 deletions sdks/python/src/opik/message_processing/message_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,12 @@ def process(self, message: messages.BaseMessage) -> None:
logging_messages.FAILED_TO_PROCESS_MESSAGE_IN_BACKGROUND_STREAMER,
message_type.__name__,
str(exception),
message,
)
except Exception as exception:
LOGGER.error(
logging_messages.FAILED_TO_PROCESS_MESSAGE_IN_BACKGROUND_STREAMER,
message_type.__name__,
str(exception),
message,
exc_info=True,
)

Expand Down

0 comments on commit abffddd

Please sign in to comment.