Explorar o código

removing print statement

Rodja Trappe %!s(int64=2) %!d(string=hai) anos
pai
achega
9b5e394070
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  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