-1

I have a server written on flask and I need to do error tracking (name of error, what caused the error, name of file and line with error). How should I do it? I'll appreciate any help.

Zirochka
  • 146
  • 2
  • 10

1 Answers1

0

enable the flask debugger, by setting debug to True for your flask app.

app = Flask(__name__)
app.config['DEBUG'] = True

As you shouldn't enable debug for a production server, you can create a logging handler as follows: http://flask.pocoo.org/docs/0.12/errorhandling/

olisch
  • 960
  • 6
  • 11