Permalink
Browse files

Improve error logging.

  • Loading branch information...
1 parent de1e059 commit 6b05451cd24f0625cf02fe7df2c68ecc43b288ad @mythmon mythmon committed Aug 6, 2012
Showing with 2 additions and 2 deletions.
  1. BIN .swp
  2. +0 −2 standup-irc.js
  3. +2 −0 utils.js
View
BIN .swp
Binary file not shown.
View
@@ -138,8 +138,6 @@ var commands = {
});
ret.on('error', function(err, data) {
client.say(channel, 'Uh oh, something went wrong.');
- logger.error('Problem adding status: ' + err + ' ' +
- JSON.stringify(data));
});
},
View
@@ -80,6 +80,8 @@ function request(path, method, data, emitter) {
});
req.end(body);
req.on('error', function(e) {
+ logger.error(options.host + ':' + options.port + options.path +
+ ': ' + JSON.stringify(data));
emitter.emit('error', String(e));
});

0 comments on commit 6b05451

Please sign in to comment.