remove logging of headers from deferred task handler

59 views
Skip to first unread message

noah

unread,
Jan 18, 2017, 9:58:39 AM1/18/17
to Google App Engine
Every invocation of a deferred task in my application results in a log message in the logging console for the request, as expected. However, even when my handler does no logging, a log level info message is logged containing the deferred task configuration header options:

    X-Appengine-Taskretrycount:13, X-Appengine-Tasketa:1484718680.7088339, X-Appengine-Taskretryreason:App Error, X-Appengine-Taskpreviousresponse:500, X-Appengine-Taskname:7663907878148197113, X-Appengine-Taskexecutioncount:13, X-Appengine-Queuename:default, X-Appengine-Current-Namespace:, X-Appengine-Country:ZZ

Is it possible to turn this off? I'm assuming that by using a worker service instead of the deferred tasks API this wouldn't happen automatically.

Thanks

Alex (Cloud Platform Support)

unread,
Jan 19, 2017, 5:25:11 PM1/19/17
to Google App Engine

Hi Noah,


From what I see, the only controls available for the Deferred library logging feature on App Engine would involve using the set_log_level() function. However, the way it works will only configure the verbosity for the logger of the component to log only certain levels of logs. In case you would need the other info level logs, your second solution might be more appropriate.


Why would you require using deferred tasks in the first place?

Reply all
Reply to author
Forward
0 new messages