Skip to content

Commit

Permalink
clean: wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
mvayngrib committed Nov 30, 2017
1 parent 7eed8bf commit 0554a6d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
7 changes: 0 additions & 7 deletions lib/wrap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions src/wrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,7 @@ function wrap (fn:Function, opts:WrapOpts) {
}

const logify = cb => {
const { _X_AMZN_TRACE_ID } = process.env
if (_X_AMZN_TRACE_ID) {
debug('_X_AMZN_TRACE_ID start', _X_AMZN_TRACE_ID)
}

return function (err, result) {
if (_X_AMZN_TRACE_ID) {
debug('_X_AMZN_TRACE_ID end', _X_AMZN_TRACE_ID)
}

if (err) debug('wrapped task failed', err)
cb(err, result)
}
Expand Down

0 comments on commit 0554a6d

Please sign in to comment.