YUKI Hiroshi
null+****@clear*****
Thu Nov 1 19:03:59 JST 2012
YUKI Hiroshi 2012-11-01 19:03:59 +0900 (Thu, 01 Nov 2012) New Revision: 4c5675a7ec42e48618399acd7b3eda2696dd80b3 https://github.com/groonga/gcs/commit/4c5675a7ec42e48618399acd7b3eda2696dd80b3 Log: Output query log Modified files: lib/api/2011-02-01/search.js Modified: lib/api/2011-02-01/search.js (+4 -0) =================================================================== --- lib/api/2011-02-01/search.js 2012-11-01 19:00:43 +0900 (3a0fc71) +++ lib/api/2011-02-01/search.js 2012-11-01 19:03:59 +0900 (51fe36c) @@ -159,6 +159,10 @@ exports.createHandler = function(context, config) { var finishedAt = new Date(); var elapsedTime = finishedAt.getTime() - startedAt.getTime(); + + if (config.queryLogger) + config.queryLogger.log(JSON.stringify(selectQuery.selectOptions) + ' [' + elapsedTime + 'msec)'); + if (error) { var body = createErrorBody({ rid: dummyRid, -------------- next part -------------- HTML����������������������������... Télécharger