DavidLiu 4 months ago
parent
commit
5cca38bb15
2 changed files with 2 additions and 1 deletions
  1. 1 1
      src/core/callcenter/acd.py
  2. 1 0
      src/core/callcenter/cache.py

+ 1 - 1
src/core/callcenter/acd.py

@@ -54,7 +54,7 @@ class AcdService:
             self.call_service.transfer(call_info, agent_number, service_id)
 
     def try_transfer_agent(self):
-        self.logger.info("AcdService tryTransferAgent start")
+        # self.logger.info("AcdService tryTransferAgent start")
         all_task = []
         for k, v in self.holdsQueue.items():
             self.logger.info("AcdService tryTransferAgent start, queue.k:%s, q.v", k, v.qsize())

+ 1 - 0
src/core/callcenter/cache.py

@@ -131,6 +131,7 @@ class Cache:
         key = CTI_ENGINE_DELAY_ACTION % action
         current_time = int(time.time() * 1000)  # 毫秒级时间戳
         members = self.redis_handler.redis.zrangebyscore(key, 0, current_time, start=0, num=DELAY_ACTION_BATCH_SIZE, withscores=True)
+        self.logger.info('get_delay_message %s %s %s'%(key, action, members))
         if not members:
             return []
         # scored_entries = [{"member": entry[0].decode('utf-8'), "score": entry[1]} for entry in members]