2

It seems logging.debug() doesn't appear in GAE logs, but logging.error() does.

Does anyone have an idea how can I make logging.debug() appear in the GAE logs?

Gabi Purcaru
  • 30,940
  • 9
  • 79
  • 95
  • possible duplicate of [Getting logging.debug() to work on Google App Engine/Python](http://stackoverflow.com/questions/2982959/getting-logging-debug-to-work-on-google-app-engine-python) – Wooble Oct 18 '10 at 20:12

2 Answers2

1

Logging in Python can be set to a different level, so that only a specified level of information appears in the log file. Try to change the logging level:

logging.setLevel(logging.DEBUG)
eumiro
  • 207,213
  • 34
  • 299
  • 261
  • 2
    Incorrect - setting the logging level on App Engine in production does nothing, and setting it yourself in the SDK is a bad idea. – Nick Johnson Oct 19 '10 at 09:15
0

I observed that on the SDK-Server debug logging really disappears. In production I get full debug logs. This may be because of the way I call webapp.WSGIApplication:

application = webapp.WSGIApplication([
     ('/', Homepage)],
    debug=True)

Do you also use debug=True. (Actually I always wondered what it exactly was meant to do)

max
  • 29,122
  • 12
  • 52
  • 79