kaeizen commited on
Commit
0b958ce
·
1 Parent(s): ad359b4

add log for debugging

Browse files
Files changed (1) hide show
  1. agent_manager/__init__.py +2 -0
agent_manager/__init__.py CHANGED
@@ -184,6 +184,7 @@ def get_or_create_agent(cookie_session, chat_session):
184
  # Normalize to string to avoid type-mismatch keys
185
  session_key = str(cookie_session) if cookie_session else None
186
 
 
187
  if not session_key or chat_session == 0:
188
  if session_key and session_key in SESSION_AGENTS:
189
  del SESSION_AGENTS[session_key]
@@ -194,6 +195,7 @@ def get_or_create_agent(cookie_session, chat_session):
194
  set_session_agent(session_key)
195
  cache.set(f"chat_session_{session_key}", True)
196
 
 
197
  return SESSION_AGENTS.get(session_key), session_key
198
 
199
 
 
184
  # Normalize to string to avoid type-mismatch keys
185
  session_key = str(cookie_session) if cookie_session else None
186
 
187
+ print("start", session_key, chat_session)
188
  if not session_key or chat_session == 0:
189
  if session_key and session_key in SESSION_AGENTS:
190
  del SESSION_AGENTS[session_key]
 
195
  set_session_agent(session_key)
196
  cache.set(f"chat_session_{session_key}", True)
197
 
198
+ print("end", session_key, chat_session)
199
  return SESSION_AGENTS.get(session_key), session_key
200
 
201