Merge branch 'master' into express-4.x

This commit is contained in:
Raul Ochoa 2016-10-03 15:18:50 +02:00
commit 0e43f7c5fb
4 changed files with 19 additions and 8 deletions

View File

@ -1,7 +1,14 @@
1.36.2 - 2016-mm-dd
1.36.3 - 2016-mm-dd
-------------------
1.36.2 - 2016-10-03
-------------------
Bug fixes:
- Batch Queries logs: use path instead of stream to be able to reopen FD.
1.36.1 - 2016-09-30
-------------------

View File

@ -1,16 +1,20 @@
'use strict';
var bunyan = require('bunyan');
var fs = require('fs');
function BatchLogger (path) {
var stream = {
level: 'info'
};
if (path) {
stream.path = path;
} else {
stream.stream = process.stdout;
}
this.path = path;
this.logger = bunyan.createLogger({
name: 'batch-queries',
streams: [{
level: 'info',
stream: path ? fs.createWriteStream(path, { flags: 'a', encoding: 'utf8' }) : process.stdout
}]
streams: [stream]
});
}

2
npm-shrinkwrap.json generated
View File

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

View File

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