Python Forum
Enable error logging to browser for Python's Flask under Apache + mod_wsgi
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enable error logging to browser for Python's Flask under Apache + mod_wsgi
#1
what are the exact steps i need to execute in order to enable error logging to browser so i don't check the error_log via console any more?

I'am using Flask under Apache + mod_wsgi.

If i place app.debug = True within my app it does not do anything.

from flask import Flask, request, redirect, render_template, url_for

application = Flask(__name__)

app = application
app.config['TESTING'] = True
Reply
#2
Can anybody help me send error output to the browser? Its really annoying logging via ssh and checking error_log with 'tail -f' each time.....
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Error updating one to many relationship in Flask/ SQLAlchemy atindra 0 655 Apr-15-2021, 10:29 PM
Last Post: atindra
  enable flash using selenium chromedriver Fre3k 1 2,472 Nov-27-2020, 12:15 PM
Last Post: JellyCreeper6
  Problem with logging in on website - python w/ requests GoldeNx 6 1,106 Sep-25-2020, 10:52 AM
Last Post: snippsat
  TemplateNotFound error with flask Veztar 4 1,959 Aug-28-2020, 07:02 AM
Last Post: Veztar
  python 3.7 on windows using flask and flask-sqlalchemy. Alpy 2 2,103 Aug-12-2020, 07:24 PM
Last Post: Alpy
  Where is mod_wsgi for Apache on Windows? jfha73 0 757 May-01-2020, 02:21 PM
Last Post: jfha73
  How to resolve a 401 error, when the credentials work fine in a browser PyCurious 4 1,302 Apr-21-2020, 08:05 PM
Last Post: PyCurious
  Django deployment on apache server? tmmaersk 2 841 Mar-28-2020, 03:35 PM
Last Post: tmmaersk
  Running flask run produces error. Charles1 1 2,236 Oct-04-2019, 10:38 PM
Last Post: snippsat
  Access Flask Web App from External Browser - IIS fioranosnake 3 1,006 Sep-16-2019, 06:22 PM
Last Post: ndc85430

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020