Kaynağa Gözat

add redis options inc host ip to error message

Henry Oswald 7 yıl önce
ebeveyn
işleme
6600c2e050

+ 1 - 0
libraries/redis-wrapper/index.coffee

@@ -49,6 +49,7 @@ module.exports = RedisSharelatex =
 			console.error {
 				err: error,
 				key: client.options?.key # only present for cluster
+				clientOptions: client.options
 			}, "client timed out"
 			callback(error)
 		, RedisSharelatex.HEARTBEAT_TIMEOUT

+ 1 - 1
libraries/redis-wrapper/package.json

@@ -1,6 +1,6 @@
 {
   "name": "redis-sharelatex",
-  "version": "1.0.7",
+  "version": "1.0.8",
   "description": "Redis wrapper for node which will either use cluster, sentinal, or single instance redis",
   "main": "index.js",
   "author": "ShareLaTeX",