774056846 4 mēneši atpakaļ
vecāks
revīzija
b00d63ff05
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/core/callcenter/esl/client.py

+ 2 - 2
src/core/callcenter/esl/client.py

@@ -536,13 +536,13 @@ class OutboundClient:
                         agents = self.server.load_agent_monitor()
                         destination = random.choice(agents) # 随机取一个坐席号
                         # 直接转接到人工坐席
-                        self.server.logger.info( "Caller %s is in whitelist, agents: %s, destination: %s", caller_number, agents, destination)
+                        self.server.logger.info( "Caller %s is in whitelist, agents: %s, destination: %s"% (caller_number, agents, destination))
                         call_info['type']= 0
                         call_info['agent_num'] = destination
                     else:
                         #转到ai机器人
                         destination = self.server.agent.register(**kwargs)
-                        self.server.logger.info("debugger::device_id=%s, destination=%s, new_device_id=%s", device_id, destination, new_device_id)
+                        self.server.logger.info("debugger::device_id=%s, destination=%s, new_device_id=%s"% (device_id, destination, new_device_id))
                         call_info['type'] = 1
                         call_info['service_category'] = 1
                         call_info['user_id'] = destination