Branch: Tag:

2015-10-16

2015-10-16 12:34:57 by Marcus Agehall <agehall@roxen.com>

Rename req_js_logger to json_logger in request objects.

887:    tmp->prid = root_id->request_uuid;    werror("Subrequest detected!\n");    } -  req_js_logger->log(tmp); +  json_logger->log(tmp);    } while(0);      
985:    }    }    -  req_js_logger->log(([ +  json_logger->log(([    "event" : "GOT_HEADERS",    "headers" : request_headers,    "prot" : prot,
1897:       conf->log(file, this_object());    -  req_js_logger->log(([ +  json_logger->log(([    "event" : "LOG_REQUEST",    "htime" : handle_time,    "qtime" : queue_time,
2550:   {    TIMER_START(send_result);    -  req_js_logger->log(([ +  json_logger->log(([    "event" : "SEND_RESULT_BEGIN",    ]));   
2612:    {    if((file->file == -1) || file->leave_me)    { -  req_js_logger->log(([ +  json_logger->log(([    "event" : "SEND_RESULT_END",    "msg" : "No result",    ]));
3053:       REQUEST_WERR("HTTP: handle_request()");    TIMER_START(handle_request); -  req_js_logger->log(([ +  json_logger->log(([    "event" : "HANDLE_REQUEST_BEGIN",    "qtime" : queue_time,    ]));   #ifdef TIMERS - #define LOG_HANDLE_END() do { req_js_logger->log((["event" : "HANDLE_REQUEST_END", "handle_time" : timers->handle_request ])); } while(0) + #define LOG_HANDLE_END() do { json_logger->log((["event" : "HANDLE_REQUEST_END", "handle_time" : timers->handle_request ])); } while(0)   #else   #define LOG_HANDLE_END()   #endif
3127:    if (result && result->pipe) {    REQUEST_WERR("HTTP: handle_request: pipe in progress.");    TIMER_END(handle_request); -  req_js_logger->log(([ +  json_logger->log(([    "event" : "PIPE_BEGIN",    ]));    LOG_HANDLE_END();
3339:       TIMER_END(find_conf);    -  req_js_logger->log(([ +  json_logger->log(([    "event" : "GOT_REQUEST",    "data_length" : strlen(data),    "path" : path,
3706:    REQUEST_WERR("HTTP: Calling roxen.handle().");    queue_time = gethrtime();    queue_length = roxen.handle_queue_length(); -  req_js_logger->log(([ +  json_logger->log(([    "event" : "ENTER_QUEUE",    "qlen" : queue_length,    "vars" : real_variables,