summaryrefslogtreecommitdiff
path: root/rotord/src/rotord.cpp
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-08-16 00:56:32 +0100
committerComment <tim@gray.(none)>2013-08-16 00:56:32 +0100
commit1af93fbfe4c8cfa214331d2d96327637ffe749bf (patch)
treef452a61b83e16993c5b4702f3a46c85d7d0829b6 /rotord/src/rotord.cpp
parentf91c866884819bee50b39b7b370209ef6b94ec53 (diff)
adding render log
Diffstat (limited to 'rotord/src/rotord.cpp')
-rwxr-xr-xrotord/src/rotord.cpp25
1 files changed, 16 insertions, 9 deletions
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<string> 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<Rotor::Render_context>)task)->session_command(sc,XML,status);
-
+ Session_command SC;
+ vector<string> 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<Rotor::Render_context>)task)->session_command(SC,XML,status);
+ if (XML.tagExists("render_id")){
+ //cerr<<"render started: "<<SC.uid<<" in context: "<<command[0]<<endl;
+ }
}
}
}