title: Flask doesn't print to console
body: <p>I'm new to flask, and I'm trying to add print info to debug server side code.
  When launch my flask app with debug=True, i can't get any info print to console</p>
  
  <p>I tried to use logging instead, but no success.
  So how to debug flask program with console.</p>
  
  <pre><code>@app.route('/getJSONResult', methods=['GET', 'POST'])
  def getJSONResult():
  
      if request.method == 'POST':
          uut = request.form['uut']
          notes = request.form['notes']
          temperature = request.form['temperature']
  
          logging.info("enter getJSONReuslt")
          print('enter getJSONReuslt')
          filter_by_query = {k: v for k, v in {
              'uut': uut, 'notes': notes, 'temperature': temperature}.items() if v != ""}
          s = session.query(UUT_TEST_INFO).filter_by(**filter_by_query).first()
          return jsonify(s.serialize)
  
  if __name__ == '__main__':
      app.secret_key = ''.join(random.choice(
          string.ascii_uppercase + string.digits) for x in range(32))
      app.debug = True
      app.run(host='127.0.0.1', port=5000)
  
  
  &gt; 127.0.0.1 - - [07/Jun/2017 15:20:48] "GET /qyer HTTP/1.1" 200 -
  &gt; 127.0.0.1 - - [07/Jun/2017 15:20:48] "GET /static/css/bootstrap.min.css HTTP/1.1" 200 -
  &gt; 127.0.0.1 - - [07/Jun/2017 15:20:48] "GET /static/js/bootstrap.min.js HTTP/1.1" 200 -
  &gt; 127.0.0.1 - - [07/Jun/2017 15:20:51] "GET /static/css/bootstrap.min.css.map HTTP/1.1" 200 -
  &gt; 127.0.0.1 - - [07/Jun/2017 15:21:58] "POST /getJSONResult HTTP/1.1" 500 -
  </code></pre>
  
  <p>I fixed server side 500 error issue, now request get 200 code, and console displays following info</p>
  
  <pre><code>$ python project.py
  INFO:werkzeug: * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
  INFO:werkzeug: * Restarting with stat
  WARNING:werkzeug: * Debugger is active!
  INFO:werkzeug: * Debugger pin code: 158-624-607
  INFO:werkzeug:127.0.0.1 - - [08/Jun/2017 11:33:33] "GET /qyer HTTP/1.1" 200 -
  INFO:root:Enter getJSONResult
  INFO:werkzeug:127.0.0.1 - - [08/Jun/2017 11:33:43] "POST /getJSONResult HTTP/1.1" 200 -
  </code></pre>
  
  <p>Still no info from print command</p>