@airbrake/node
Version:
Official Airbrake notifier for Node.js
19 lines • 609 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.patch = void 0;
function patch(createDebug, airbrake) {
var oldInit = createDebug.init;
createDebug.init = function (debug) {
oldInit.apply(this, arguments);
var oldLog = debug.log || createDebug.log;
debug.log = function abCreateDebug() {
airbrake.scope().pushHistory({
type: 'log',
arguments: arguments,
});
return oldLog.apply(this, arguments);
};
};
}
exports.patch = patch;
//# sourceMappingURL=debug.js.map