Permalink
Browse files

Show length of queue on stats page

  • Loading branch information...
1 parent 467ef88 commit faab9ccd146ba0bde0256fd1954e9020d8531081 Simon Willison committed Mar 19, 2010
Showing with 4 additions and 2 deletions.
  1. +3 −2 readme.txt
  2. +1 −0 webhook-relay.js
View
@@ -22,7 +22,7 @@ webhook-relay should respond within a few ms, so your main
application can safely block on the call to webhook-relay.
webhook-relay also tracks statistics on the number of calls it
-has made and how long they took to send.
+has made successfully.
Installation:
@@ -46,4 +46,5 @@ Usage from Python:
})
).read()
-Then visit http://www.postbin.org/13lam6a to see what was posted.
+Then visit http://www.postbin.org/13lam6a to see what was posted. You can
+also visit http://localhost:8056/ to see basic webhook-relay statistics.
View
@@ -74,6 +74,7 @@ var app = dj.makeApp([
].forEach(function(key) {
s += (key + ': ' + webhook_stats[key] + '\n');
});
+ s += 'queue length: ' + webhook_queue.length + '\n';
dj.respond(res, s, 'text/plain');
}],
['^/relay/?$', function(req, res) {

0 comments on commit faab9cc

Please sign in to comment.