From 1af93fbfe4c8cfa214331d2d96327637ffe749bf Mon Sep 17 00:00:00 2001 From: Comment Date: Fri, 16 Aug 2013 00:56:32 +0100 Subject: adding render log --- rotord/src/rotord.cpp | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to 'rotord/src/rotord.cpp') diff --git a/rotord/src/rotord.cpp b/rotord/src/rotord.cpp index fefca8e..33031e7 100755 --- a/rotord/src/rotord.cpp +++ b/rotord/src/rotord.cpp @@ -139,15 +139,22 @@ HTTPRequestHandler* RotorRequestHandlerFactory::createRequestHandler(const HTTPS //on the other hand, some commands need to know state of the renderer? - vector sc; //method,id,command1,{command2,}{body} - sc.push_back(request.getMethod()); - for (auto& i: command){ - sc.push_back(i); - } - sc.push_back(body); - - ((Poco::AutoPtr)task)->session_command(sc,XML,status); - + Session_command SC; + vector sc; //uid,method,id,command1,{command2,}{body} + SC.uid=idGen.createOne().toString(); + sc.push_back(request.getMethod()); + SC.method=request.getMethod(); + for (auto& i: command){ + sc.push_back(i); + SC.commands.push_back(i); + } + sc.push_back(body); + SC.body=body; + + ((Poco::AutoPtr)task)->session_command(SC,XML,status); + if (XML.tagExists("render_id")){ + //cerr<<"render started: "<