Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Unified Diff: third_party/buildbot_8_4p1/buildbot/status/web/status_json.py

Issue 392223002: Added logging to the status_json.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Added diff to the README.chromium Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/buildbot_8_4p1/README.chromium ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/buildbot_8_4p1/buildbot/status/web/status_json.py
diff --git a/third_party/buildbot_8_4p1/buildbot/status/web/status_json.py b/third_party/buildbot_8_4p1/buildbot/status/web/status_json.py
index e7cd932d10a0f874175a8b03bd0a9e29436e2278..ab68879a573331bd59d0a33ed2be37211c8b39e5 100644
--- a/third_party/buildbot_8_4p1/buildbot/status/web/status_json.py
+++ b/third_party/buildbot_8_4p1/buildbot/status/web/status_json.py
@@ -162,6 +162,10 @@ class JsonResource(resource.Resource):
def render_GET(self, request):
"""Renders a HTTP GET at the http request level."""
+ userAgent = request.requestHeaders.getRawHeaders(
+ 'user-agent', ['unknown'])[0]
+ print 'Received request for %s from %s, id: %s' % (
agable 2014/07/16 16:39:20 Printing is the saddest kind of logging. Please lo
Sergiy Byelozyorov 2014/07/17 08:29:12 Done.
+ request.uri, userAgent, id(request))
d = defer.maybeDeferred(lambda : self.content(request))
def handle(data):
if isinstance(data, unicode):
@@ -183,6 +187,7 @@ class JsonResource(resource.Resource):
return data
d.addCallback(handle)
def ok(data):
+ print 'Finished processing request with id: %s' % id(request)
request.write(data)
request.finish()
def fail(f):
« no previous file with comments | « third_party/buildbot_8_4p1/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698