Permalink
Browse files

Finish v0.8.17

  • Loading branch information...
itayw committed Dec 29, 2015
2 parents 2187b07 + dbacf4e commit 13ed0b24d9fa1e1bf2ff8975a439a5a37172550c
Showing with 4 additions and 24 deletions.
  1. +1 −1 lib/webserver/index.js
  2. +2 −22 lib/webserver/routes/index.js
  3. +1 −1 package.json
View
@@ -294,7 +294,7 @@ webserver.start = function(options, callback) {
joola.io = require('socket.io')(self.http, {
'log level': 1
});
if (joola.config.get('interfaces:webserver:websocket') === false)
if (joola.config.get('interfaces:webserver:websocket') === false)
joola.io.set('transports', ['xhr-polling','jsonp-polling', 'polling']);
if (socketIORedisOptions && socketIORedisOptions.enabled) {
@@ -73,20 +73,10 @@ exports.responseError = function(code, err, req, res) {
res.json(err);
res.handled = true;
var _req = ce.clone(req);
delete _req.domain;
delete _req.socket;
delete _req.client;
delete _req.connection;
Object.keys(_req).forEach(function(key) {
if (key.substring(0, 1) === '_')
delete _req[key];
});
joola.stats.emit({
timestamp: new Date(),
event: 'request-error',
req: JSON.parse(prune(_req, 2)),
//req: JSON.parse(prune(_req, 2)),
err: err
});
};
@@ -148,20 +138,10 @@ exports.responseSuccess = function(data, headers, req, res) {
joola.events.emit('event_end');
res.json(data);
var _req = ce.clone(req);
delete _req.domain;
delete _req.socket;
delete _req.client;
delete _req.connection;
Object.keys(_req).forEach(function(key) {
if (key.substring(0, 1) === '_')
delete _req[key];
});
joola.stats.emit({
timestamp: new Date(),
event: 'request-success',
req: JSON.parse(prune(_req, 2)),
//req: JSON.parse(prune(_req, 2)),
data: data,
meta: meta
});
View
@@ -1,7 +1,7 @@
{
"name": "joola",
"preferGlobal": true,
"version": "0.8.16",
"version": "0.8.17",
"author": "Joola <info@joo.la>",
"description": "Custom data analytics solution built for today's market needs and scale.",
"private": false,

0 comments on commit 13ed0b2

Please sign in to comment.