I just deployed the first website that I created with Flask to a production server. I turned on logging using logging.handlers.RotatingFileHandler to /log/myapp.log , with which I can log messages using, for example:
current_app.logger.error('this is a massive error')
It works great. This makes me think about some code fragments, although they contain, for example, print 'some info here' , which I used during debugging. Where do these printouts go? Into the void /dev/null or somewhere else? Is it possible to catch them?
All tips are welcome!
source share