Skip to content

Commit

Permalink
[api] execute log() callback correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed May 12, 2012
1 parent e40c913 commit 5c56fd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/winston-riak.js
Expand Up @@ -66,10 +66,10 @@ Riak.prototype.log = function (level, msg, meta, callback) {
this.client.save(bucketName, Date.now(), msg, metac, function (err) {
if (err) {
self.emit('error', err);
return callback(err, false);
}

callback(null, true);
self.emit('logged');
});

callback(null, true);
};

0 comments on commit 5c56fd2

Please sign in to comment.