Timothy J. Baek 7 月之前
父節點
當前提交
c292fd89f9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/open_webui/apps/socket/main.py

+ 1 - 1
backend/open_webui/apps/socket/main.py

@@ -69,7 +69,6 @@ TIMEOUT_DURATION = 3
 async def periodic_usage_pool_cleanup():
     while True:
         now = int(time.time())
-        log.debug(f"Cleaning up usage pool: {now}")
         for model_id, connections in list(USAGE_POOL.items()):
             # Creating a list of sids to remove if they have timed out
             expired_sids = [
@@ -82,6 +81,7 @@ async def periodic_usage_pool_cleanup():
                 del connections[sid]
 
             if not connections:
+                log.debug(f"Cleaning up model {model_id} from usage pool")
                 del USAGE_POOL[model_id]
             else:
                 USAGE_POOL[model_id] = connections