commit 9682b43: [Minor] Log error in a more straightforward way
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Oct 22 17:00:07 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-22 17:52:15 +0100
URL: https://github.com/rspamd/rspamd/commit/9682b43caca49136bb18a3212b8defe2691b09ca
[Minor] Log error in a more straightforward way
---
src/lua/lua_redis.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c
index 32fa55476..1e9ac9670 100644
--- a/src/lua/lua_redis.c
+++ b/src/lua/lua_redis.c
@@ -999,7 +999,8 @@ rspamd_lua_redis_prepare_connection (lua_State *L, gint *pcbref, gboolean is_asy
ud->ctx = NULL;
}
else {
- msg_err_task_check ("cannot connect to redis: unknown error");
+ msg_err_task_check ("cannot connect to redis (OS error): %s",
+ strerror (errno));
}
REDIS_RELEASE (ctx);
More information about the Commits
mailing list