DavidLiu 3 місяців тому
батько
коміт
7e8df7b289
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      src/core/callcenter/agent.py

+ 3 - 3
src/core/callcenter/agent.py

@@ -111,7 +111,7 @@ class AgentEventService:
         if CHANNEL_ANSWER == event_name:
             if call_id:
                 if self.cache.get_call_is_end(call_id):
-                    self.logger.warn("event service channel call is end {} {} {} {} {} {}", saas_id, event_name, caller, called, call_id, event.serialize('json'))
+                    self.logger.warn("event service channel call is end {} {} {} {} {} {}", saas_id, event_name, caller, called, call_id, json.dumps(event.serialize('json')))
                     return
 
             self.agent_state_service.busy(saas_id, agent.agent_num, agent.phone_num)
@@ -171,12 +171,12 @@ class AgentEventService:
         agent = self.data_handle_server.get_agent(saas_id, agent_num)
         if not agent:
             self.logger.warn("bot event service channel agent is null %s %s %s %s %s", saas_id, event_name, caller, called,
-                             event.serialize('json'))
+                             json.dumps(event.serialize('json')))
             return
         agent_monitor = self.data_handle_server.get_agent_monitor(saas_id, agent_num)
         if not agent_monitor:
             self.logger.warn("bot event service channel agentMonitor is null %s %s %s %s %s", saas_id, event_name, caller,
-                             called, event.serialize('json'))
+                             called, json.dumps(event.serialize('json')))
             return
 
         # 信道发起事件,触发完成发起(或桥)&& 坐席侧