debug-callback
Advanced tools
Comparing version 0.2.1 to 0.2.2
'use strict'; | ||
var util = require('util'); | ||
var forEach = require('lodash.foreach'); | ||
@@ -42,3 +43,5 @@ | ||
var duration = (Date.now() - callbackTimes[key].time) / 1000; | ||
debug('success (%o): %s\t\t%d seconds\n', res, msg, duration); | ||
debug('success (%s): %s\t\t%d seconds\n', util.inspect(res, { | ||
depth: 1 | ||
}), msg, duration); | ||
}; | ||
@@ -45,0 +48,0 @@ var fail = function (err) { |
{ | ||
"name": "debug-callback", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Debug output outstanding callbacks, results, errors, and call times.", | ||
@@ -5,0 +5,0 @@ "author": "Porch Hackers <hackers@porch.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18460
84