DavidLiu 3 달 전
부모
커밋
9b3bdd2584
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/core/callcenter/agent.py

+ 2 - 1
src/core/callcenter/agent.py

@@ -84,7 +84,7 @@ class AgentEventService:
         called = device_info.called if device_info else None
         is_agent = (device_info and DeviceType.AGENT.code == device_info.device_type) if device_info else False
 
-        self.logger.info('agent_event_channel, event_name=%s, call_id=%s, device_id=%s, is_agent=%s', event_name, call_id, device_id, is_agent)
+        # self.logger.info('agent_event_channel, event_name=%s, call_id=%s, device_id=%s, is_agent=%s', event_name, call_id, device_id, is_agent)
         agent = self.data_handle_server.get_agent(saas_id, agent_num)
         if not agent:
             # self.logger.warn("event service channel agent is null %s %s %s %s %s", saas_id, event_name, caller, called, json.loads(event.serialize('json')))
@@ -109,6 +109,7 @@ class AgentEventService:
 
         #应答
         if CHANNEL_ANSWER == event_name:
+            self.logger.info('agent_event_channel, event_name=%s, call_id=%s, device_id=%s, is_agent=%s', event_name, call_id, device_id, is_agent)
             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, json.dumps(event.serialize('json')))