Merge branch 'master' into express-4.x

This commit is contained in:
Raul Ochoa 2016-09-30 18:53:13 +02:00
commit a093737818
4 changed files with 18 additions and 9 deletions

View File

@ -1,7 +1,14 @@
1.36.1 - 2016-mm-dd
1.36.2 - 2016-mm-dd
-------------------
1.36.1 - 2016-09-30
-------------------
Enhancements:
* Tag fallback jobs logs.
1.36.0 - 2016-09-30
-------------------

View File

@ -220,7 +220,7 @@ JobFallback.prototype.log = function(logger) {
for (var i = 0; i < queries.length; i++) {
var query = queries[i];
var output = {
var logEntry = {
time: query.started_at,
endtime: query.ended_at,
username: this.data.user,
@ -230,18 +230,20 @@ JobFallback.prototype.log = function(logger) {
var queryId = query.id;
var tag = 'query';
if (queryId) {
output.query_id = queryId;
logEntry.query_id = queryId;
var node = parseQueryId(queryId);
if (node) {
output.analysis = node.analysisId;
output.node = node.nodeId;
output.type = node.nodeType;
logEntry.analysis = node.analysisId;
logEntry.node = node.nodeId;
logEntry.type = node.nodeType;
tag = 'analysis';
}
}
logger.info(output);
logger.info(logEntry, tag);
}
return true;

2
npm-shrinkwrap.json generated
View File

@ -1,6 +1,6 @@
{
"name": "cartodb_sql_api",
"version": "1.36.1",
"version": "1.36.2",
"dependencies": {
"body-parser": {
"version": "1.14.2",

View File

@ -5,7 +5,7 @@
"keywords": [
"cartodb"
],
"version": "1.36.1",
"version": "1.36.2",
"repository": {
"type": "git",
"url": "git://github.com/CartoDB/CartoDB-SQL-API.git"