Skip to content

Commit

Permalink
fix call next 2 times
Browse files Browse the repository at this point in the history
  • Loading branch information
dominhhai committed Apr 20, 2016
1 parent 766ec07 commit ae2c3b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions koa-logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ function getKoaLogger (logger4js, options) {
thislogger.log(level, format(fmt, combined_tokens))
}
}
} else {
// ensure next gets always called
yield next()
}

// ensure next gets always called
yield next()
})
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "koa-log4",
"version": "2.0.0",
"version": "2.0.1",
"description": "log4js-node support Koa-middleware",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit ae2c3b5

Please sign in to comment.