feat(logging): enhance logging with system message details
Added logging for system messages to improve debug traceability. This change helps in diagnosing issues by ensuring that system-level communications are captured alongside incoming user messages, thereby providing more context for developers monitoring application behavior.
This commit is contained in:
parent
253c7e581f
commit
1b37beeb0c
1 changed files with 1 additions and 0 deletions
|
@ -179,6 +179,7 @@ class OpenAI(BaseAI):
|
|||
chat_messages = []
|
||||
|
||||
self.logger.log(f"Incoming messages: {messages}", "debug")
|
||||
self.logger.log(f"System message: {system_message}", "debug")
|
||||
|
||||
messages.append(event)
|
||||
|
||||
|
|
Loading…
Reference in a new issue