From 2fc389c3ad2351b9f5d9b99c84192087a3557844 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Tue, 18 Feb 2020 06:25:24 -0600 Subject: [PATCH] dont log http requests --- detect_objects.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/detect_objects.py b/detect_objects.py index efd6ec089..997d4e045 100644 --- a/detect_objects.py +++ b/detect_objects.py @@ -6,6 +6,7 @@ import threading import multiprocessing as mp import subprocess as sp import numpy as np +import logging from flask import Flask, Response, make_response, jsonify import paho.mqtt.client as mqtt @@ -150,6 +151,8 @@ def main(): # create a flask app that encodes frames a mjpeg on demand app = Flask(__name__) + log = logging.getLogger('werkzeug') + log.setLevel(logging.ERROR) @app.route('/') def ishealthy():