From b518ed9db20ef3f270732e4043aba2dccb930e64 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 20 Feb 2009 17:49:47 +0100 Subject: [PATCH] add some printfs.. --- count-hosts.js | 1 - server.cc | 8 +++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/count-hosts.js b/count-hosts.js index e336476c67..2b333e78fa 100644 --- a/count-hosts.js +++ b/count-hosts.js @@ -29,7 +29,6 @@ function Initialize() { } function Process(request) { - print("hello "); if (options.verbose) { log("Processing " + request.host + request.path + " from " + request.referrer + "@" + request.userAgent); diff --git a/server.cc b/server.cc index 60170be62d..197fc2b6f2 100644 --- a/server.cc +++ b/server.cc @@ -6,6 +6,7 @@ extern "C" { #include "http_request.h" #include "js_http_request_processor.h" +#include #include #include #include @@ -38,7 +39,12 @@ void on_headers_complete { HttpRequest *request = static_cast (req->data); - processor->Process(request); + bool r = processor->Process(request); + if(r) { + printf("successful request\n"); + } else { + printf("unsuccesful request\n"); + } } void on_request_complete