I added an app.logger.error('test')
inside my @app.before_request
and noticed that there are up to 8 lines of test
in my log per request, even if it's just abort(500)
. I just can't seem to find out why, what could cause this?
If you run with app.debug = True
and serve media files (images, css, js etc.) from Flask, they also count as full requests. If that is not the case, then please provide some more information about your setup.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.