|
|
|
@ -94,8 +94,10 @@ module.exports = class MetamaskController { |
|
|
|
|
|
|
|
|
|
function logger (err, request, response) { |
|
|
|
|
if (err) return console.error(err) |
|
|
|
|
if (developmentMode && !request.isMetamaskInternal) { |
|
|
|
|
console.log(`RPC (${originDomain}):`, request, '->', response) |
|
|
|
|
if (!request.isMetamaskInternal) { |
|
|
|
|
if (developmentMode) { |
|
|
|
|
console.log(`RPC (${originDomain}):`, request, '->', response) |
|
|
|
|
} |
|
|
|
|
if (response.error) { |
|
|
|
|
console.error('Error in RPC response:\n', response.error) |
|
|
|
|
} |
|
|
|
|