MCPcopy
hub / github.com/bitpay/wallet / processingArgs

Method processingArgs

src/providers/logger/logger.ts:108–120  ·  view source on GitHub ↗
(argsValues)

Source from the content-addressed store, hash-verified

106 }
107
108 public processingArgs(argsValues) {
109 let args = Array.prototype.slice.call(argsValues);
110 args = args.map(v => {
111 try {
112 v = this.getMessage(v);
113 } catch (e) {
114 console.log('Error at log decorator:', e);
115 v = 'Unknown message';
116 }
117 return v;
118 });
119 return args.join(' ');
120 }
121
122 public log(msg: string, ...optionalParams) {
123 console.log(msg, ...optionalParams);

Callers 5

errorMethod · 0.95
debugMethod · 0.95
infoMethod · 0.95
warnMethod · 0.95
logger.spec.tsFile · 0.80

Calls 3

getMessageMethod · 0.95
joinMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected