V
V
Vitaly2019-03-28 20:19:17
Python
Vitaly, 2019-03-28 20:19:17

How to disable debugging in Flask-IO?

All the best, tell me how to disable the display of information about connections, etc. in flask?
To remove all this:

192.168.1.177 - - [28/Mar/2019 18:55:06] "GET /socket.io/?EIO=3&transport=polling&t=Md5EPzl&sid=f6e79b4eacc04403bdd4d6d75fc9e4d2 HTTP/1.1" 200 -
192.168.1.35 - - [28/Mar/2019 18:55:09] "POST /socket.io/?EIO=3&transport=polling&t=Md5EWnY&sid=3c051798d7444ae1bca3a66d15cdeb60 HTTP/1.1" 200 -
192.168.1.35 - - [28/Mar/2019 18:55:09] "GET /socket.io/?EIO=3&transport=polling&t=Md5EQgv&sid=3c051798d7444ae1bca3a66d15cdeb60 HTTP/1.1" 200 -
192.168.1.177 - - [28/Mar/2019 18:55:31] "POST /socket.io/?EIO=3&transport=polling&t=Md5EcBf&sid=f6e79b4eacc04403bdd4d6d75fc9e4d2 HTTP/1.1" 200 -
192.168.1.177 - - [28/Mar/2019 18:55:31] "GET /socket.io/?EIO=3&transport=polling&t=Md5EW4_&sid=f6e79b4eacc04403bdd4d6d75fc9e4d2 HTTP/1.1" 200 -
192.168.1.35 - - [28/Mar/2019 18:55:34] "POST /socket.io/?EIO=3&transport=polling&t=Md5Ecuj&sid=3c051798d7444ae1bca3a66d15cdeb60 HTTP/1.1" 200 -
192.168.1.35 - - [28/Mar/2019 18:55:34] "GET /socket.io/?EIO=3&transport=polling&t=Md5EWo4&sid=3c051798d7444ae1bca3a66d15cdeb60 HTTP/1.1" 200 -
192.168.1.177 - - [28/Mar/2019 18:55:56] "POST /socket.io/?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2019-03-28
@Scorpiored88

import logging
app.logger.disabled = True
log = logging.getLogger('werkzeug')
log.disabled = True

L
LODIII, 2019-03-28
@LODIII

maybe somewhere here
flask.pocoo.org/docs/1.0/logging

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question