Skip to content

Commit

Permalink
Merge pull request #62 from doug-wade/fix-59
Browse files Browse the repository at this point in the history
59: Support trace
  • Loading branch information
doug-wade committed Nov 10, 2018
2 parents 6018f41 + 33da3f9 commit 11d70da
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/index.js
Expand Up @@ -8,11 +8,7 @@ const merge = require('merge-descriptors');
const Pug = require('koa-pug');
const jsonp = require('koa-safe-jsonp');
const qs = require('koa-qs');

// TODO: The tests fail when we use trace, so I've disabled them. We should add
// it back once tract supports koa 2.
// const convert = require('koa-convert');
// const trace = require('koa-trace');
const trace = require('koa-trace');

const middleware = require('./middleware');
const ctx = require('./context');
Expand Down Expand Up @@ -56,7 +52,7 @@ module.exports = class Koala extends Koa {
jsonLimit: options.jsonLimit,
textLimit: options.textLimit
}));
// this.use(convert(trace))
trace(this);
new Pug({
debug: options.debug,
pretty: false,
Expand Down

0 comments on commit 11d70da

Please sign in to comment.