Allow custom log function. Not only console
This commit is contained in:
parent
2451fafa25
commit
b3bb80a480
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
function log(debug) {
|
||||
function _log(debug) {
|
||||
if (debug) {
|
||||
var args = Array.prototype.slice.call(arguments);
|
||||
args.shift();
|
||||
|
@ -13,6 +13,7 @@ module.exports.create = function (le) {
|
|||
var PromiseA = require('bluebird');
|
||||
var utils = require('./utils');
|
||||
var RSA = PromiseA.promisifyAll(require('rsa-compat').RSA);
|
||||
var log = le.log || _log; // allow custom log
|
||||
|
||||
var core = {
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue