add timestamp to rpc error logs
This commit is contained in:
2
rpc.js
2
rpc.js
@@ -789,7 +789,7 @@ RPC.create = function (config /*:typeof(ConfigType)*/, cb /*:(?Error, ?Function)
|
|||||||
|
|
||||||
var warn = function (e, output) {
|
var warn = function (e, output) {
|
||||||
if (e && !config.suppressRPCErrors) {
|
if (e && !config.suppressRPCErrors) {
|
||||||
console.error('[' + e + ']', output);
|
console.error(new Date().toISOString() + ' [' + e + ']', output);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user