774056846 4 月之前
父节点
当前提交
8250670dcf
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/core/callcenter/cache.py

+ 2 - 2
src/core/callcenter/cache.py

@@ -24,12 +24,12 @@ class Cache:
 
 
     def get_agent_info(self, saas_id, agent_number):
     def get_agent_info(self, saas_id, agent_number):
         text = self.redis_handler.get(AGENT_INFO + saas_id + ":" + agent_number)
         text = self.redis_handler.get(AGENT_INFO + saas_id + ":" + agent_number)
-        self.logger.info('get_agent_info', saas_id, agent_number, text)
+        self.logger.info('get_agent_info %s %s %s'%(saas_id, agent_number, text))
         if text:
         if text:
             return AgentInfo.from_json(text)
             return AgentInfo.from_json(text)
         phone = self.dataHandleServer.get_agent_phone(saas_id, agent_number)
         phone = self.dataHandleServer.get_agent_phone(saas_id, agent_number)
         agent_info = AgentInfo(saas_id=saas_id, sip_server=phone.sip_server, agent_number=agent_number)
         agent_info = AgentInfo(saas_id=saas_id, sip_server=phone.sip_server, agent_number=agent_number)
-        self.logger.info('get_agent_info', saas_id, agent_number, agent_info)
+        self.logger.info('get_agent_info %s %s %s'% (saas_id, agent_number, agent_info))
         self.add_agent_info(agent=agent_info)
         self.add_agent_info(agent=agent_info)
         sys.stdout.flush()  # 强制刷新输出缓冲区
         sys.stdout.flush()  # 强制刷新输出缓冲区
         return agent_info
         return agent_info