(level, args)
| 111 | } |
| 112 | |
| 113 | log(level, args) { |
| 114 | // make the passed in arguments object an array with the spread operator |
| 115 | args = this.maskSensitive([...args]); |
| 116 | args = [].concat( |
| 117 | level, |
| 118 | args.map(arg => { |
| 119 | if (typeof arg === 'function') { |
| 120 | return arg(); |
| 121 | } |
| 122 | return arg; |
| 123 | }) |
| 124 | ); |
| 125 | this.adapter.log.apply(this.adapter, args); |
| 126 | } |
| 127 | |
| 128 | info() { |
| 129 | return this.log('info', arguments); |