|
@@ -24,12 +24,12 @@ class Cache:
|
|
|
|
|
|
def get_agent_info(self, 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:
|
|
|
return AgentInfo.from_json(text)
|
|
|
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)
|
|
|
- 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)
|
|
|
sys.stdout.flush() # 强制刷新输出缓冲区
|
|
|
return agent_info
|