do some logging on each request
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Wed, 6 Jan 2010 02:33:26 +0000 (21:33 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Wed, 6 Jan 2010 02:33:26 +0000 (21:33 -0500)
msva

diff --git a/msva b/msva
index 738d4c2be91c00df0df71770adfd775244621a4a..af5b6579d0250e1541ee07c6b7929f94ee16f549 100755 (executable)
--- a/msva
+++ b/msva
@@ -25,7 +25,9 @@ use strict;
     my $path = $cgi->path_info();
     my $handler = $dispatch{$path};
 
+    # FIXME: ensure that this is a POST
     if (ref($handler) eq "CODE") {
+      printf STDERR ("Got POST %s\n", $path);
       my ($status, $object) = $handler->($cgi);
       printf("HTTP/1.0 %s\r\nContent-Type: application/json\r\n\r\n%s", $status, to_json ($object));
 
@@ -38,6 +40,7 @@ use strict;
     my $cgi  = shift;   # CGI.pm object
     return if !ref $cgi;
 
+    # FIXME: these should be opening up a json blob instead of using CGI params.
     my $uid = $cgi->param('uid');
     my $pkc = $cgi->param('pkc');
     my $context = $cgi->param('context');