mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
fix flask logger config
This commit is contained in:
parent
7aecf6c6de
commit
f60eb4e977
@ -73,6 +73,9 @@ class FrigateApp():
|
|||||||
for log, level in self.config.logger.logs.items():
|
for log, level in self.config.logger.logs.items():
|
||||||
logging.getLogger(log).setLevel(level)
|
logging.getLogger(log).setLevel(level)
|
||||||
|
|
||||||
|
if not 'werkzeug' in self.config.logger.logs:
|
||||||
|
logging.getLogger('werkzeug').setLevel('ERROR')
|
||||||
|
|
||||||
def init_queues(self):
|
def init_queues(self):
|
||||||
# Queues for clip processing
|
# Queues for clip processing
|
||||||
self.event_queue = mp.Queue()
|
self.event_queue = mp.Queue()
|
||||||
|
@ -20,8 +20,6 @@ bp = Blueprint('frigate', __name__)
|
|||||||
|
|
||||||
def create_app(frigate_config, database: SqliteDatabase, camera_metrics, detectors, detected_frames_processor):
|
def create_app(frigate_config, database: SqliteDatabase, camera_metrics, detectors, detected_frames_processor):
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
log = logging.getLogger('werkzeug')
|
|
||||||
log.setLevel(logging.ERROR)
|
|
||||||
|
|
||||||
@app.before_request
|
@app.before_request
|
||||||
def _db_connect():
|
def _db_connect():
|
||||||
|
Loading…
Reference in New Issue
Block a user