Permalink
Browse files

dont use async formatter

  • Loading branch information...
1 parent c6589c1 commit e7909ea4fbb162db3f7f543d43c30684a3fb745f @yunong yunong committed Jul 22, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/dtrace/demo.js
@@ -93,7 +93,7 @@ var server = restify.createServer({
name: NAME,
Logger: log,
formatters: {
- 'application/foo': function (req, res, body, cb) {
+ 'application/foo': function (req, res, body) {
if (body instanceof Error) {
body = body.stack;
} else if (Buffer.isBuffer(body)) {
@@ -118,7 +118,7 @@ var server = restify.createServer({
}
}
- return cb(null, body);
+ return body;
}
}
});

0 comments on commit e7909ea

Please sign in to comment.