cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sw...@apache.org
Subject [8/9] git commit: updated refs/heads/master to 1f53adb
Date Thu, 28 Apr 2016 20:01:30 GMT
Merge pull request #1522 from myENA/logjobid_master

Log asynchronous responses in the api logCurrently API responses for synchronous calls are
logged, but asynchronous call responses are not.  This pull request makes a minor modification
that logs the response including the JobId of all asynchronous requests.

As an example, here is what a stopVirtualMachine request looked like in the logs:

    2016-04-27 10:43:11,084 INFO  [a.c.c.a.ApiServer] (catalina-exec-3:ctx-37d9f693 ctx-d2368de3)
(logid:3a0fad97) (userId=2 accountId=2 sessionId=AF8B1F726ACB5C3A637B8B300AA218A7) 10.103.0.207
-- GET command=stopVirtualMachine&id=f63b6fcc-e0b0-480f-8f7a-cba329634ba1&forced=false&response=json&_=1461771791036
200

After this modification, here is what the logs look like:

    2016-04-27 13:37:11,338 INFO  [a.c.c.a.ApiServer] (catalina-exec-6:ctx-915b5c84 ctx-a03152fa)
(logid:66249df0) (userId=2 accountId=2 sessionId=9EF127EED5CA6E74797DFE487D980FAF) 10.103.0.207
-- GET command=stopVirtualMachine&id=f63b6fcc-e0b0-480f-8f7a-cba329634ba1&forced=false&response=json&_=1461782231194
200 {"stopvirtualmachineresponse":{"jobid":"5b9f4a9b-eabe-4fa4-849d-3d004bb65634"}}

* pr/1522:
  Log responses from asynchronous api commands

Signed-off-by: Will Stevens <williamstevens@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/91ce3b9f
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/91ce3b9f
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/91ce3b9f

Branch: refs/heads/master
Commit: 91ce3b9ffb9b9c6e62c1a0c75573235adc6f250c
Parents: 4db5e48 7778e24
Author: Will Stevens <williamstevens@gmail.com>
Authored: Thu Apr 28 15:59:57 2016 -0400
Committer: Will Stevens <williamstevens@gmail.com>
Committed: Thu Apr 28 15:59:57 2016 -0400

----------------------------------------------------------------------
 server/src/com/cloud/api/ApiServer.java | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------



Mime
View raw message