浏览代码

removing print statement

Rodja Trappe 2 年之前
父节点
当前提交
9b5e394070
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      prometheus.py

+ 0 - 1
prometheus.py

@@ -25,7 +25,6 @@ def start_monitor(app: FastAPI) -> None:
                     # ignore monitoring, web crawlers and the like
                     if not any(s in agent for s in EXCLUDED_USER_AGENTS):
                         origin_url = request.headers.get('referer', 'unknown')
-                        print(request.get('path'), agent, request.session['id'], origin_url, flush=True)
                         visits.labels(request.get('path'), request.session['id'], origin_url).inc()
                 return response