title: Python Flask Error Logging wont work with HTTP Handler
body: <p>So i have tried doing this a few different ways. 
  i am trying to use the flask app.logger to save messages with MYSQL database without using the SQLalchdb handler (i dont use SQLalch for anything)</p>
  
  <p>anyways....
  when i use app.logger with a filehandler, everything works correctly</p>
  
  <p>when i use my http handler outside of flask, and have the flask route programmed to catch the error, it also works</p>
  
  <p>but when i use app.logger and add the http handler to it, it does not work. 
  have a look at my code and tell me what your think</p>
  
  <pre><code>http_handler = logging.handlers.HTTPHandler(
  'localhost:5000',
  '/logs',
  method='POST',
  )
  app.logger.setLevel(logging.DEBUG)
  app.logger.addHandler(http_handler)
  </code></pre>
  
  <p>and this is the flask route:</p>
  
  <pre><code>@app.route('/logs' , methods = ["GET","POST"])
  def logs():
  print('caught it')
  print(request.form)
  return ""
  </code></pre>
  
  <p>Here is the route i am using to force and error:</p>
  
  <pre><code>@app.route('/home', methods=['POST'])
  def index():
  [some code]
  ender_template("index.html")
  </code></pre>
  
  <p>as previous mentioned, if i set up a new logger (not flask app.logger) with the same HTTP handler above it works, so i assume the flask route is set up correctly. 
  also as previously mentioned, the flask app.logger will work with a file handler</p>
  
  <p>Any help is greatly appreciated</p>
  
  <p>EDIT::
  Was recently asked to describe how the following code responds, figured it could be good information for everyone trying to help. </p>
  
  <p>When i force flask to have an error (changed "render_template" to "ender_template"
  i see the error in the python shell, but it is not getting passed to the route. 
  also, after i force the error flask no longer allows me to GET/POST anything until its restarted. 
  i dont get any exceptions or errors for the logging function</p>