add timestamp to rpc error logs

This commit is contained in:
ansuz 2017-05-29 17:35:13 +02:00
parent 3915b30055
commit c4f8286be6
1 changed files with 1 additions and 1 deletions

2
rpc.js
View File

@ -789,7 +789,7 @@ RPC.create = function (config /*:typeof(ConfigType)*/, cb /*:(?Error, ?Function)
var warn = function (e, output) {
if (e && !config.suppressRPCErrors) {
console.error('[' + e + ']', output);
console.error(new Date().toISOString() + ' [' + e + ']', output);
}
};