From c4f8286be66be9562b177d902462140262598732 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 29 May 2017 17:35:13 +0200 Subject: [PATCH] add timestamp to rpc error logs --- rpc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc.js b/rpc.js index 45be04cc7..07ad2e1cd 100644 --- a/rpc.js +++ b/rpc.js @@ -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); } };