Gabi Purcaru
Gabi Purcaru

Reputation: 31564

Why wouldn't GAE store my logging.debug?

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?

Upvotes: 2

Views: 638

Answers (2)

max
max

Reputation: 30013

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)

Upvotes: 0

eumiro
eumiro

Reputation: 213075

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)

Upvotes: 1

Related Questions