]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
redis: add debug log if communication with connected db failed (e.g. TLS mismatch)
authorDaniel Salzman <daniel.salzman@nic.cz>
Wed, 24 Dec 2025 08:46:33 +0000 (09:46 +0100)
committerDaniel Salzman <daniel.salzman@nic.cz>
Thu, 25 Dec 2025 12:33:38 +0000 (13:33 +0100)
src/knot/common/hiredis.c

index f7f4933c072e06d1d94302b576bb4d37e127bc1f..bcf4e2e0a8a9abdb1b5cbdcf5fba2c6fa101b2e3 100644 (file)
@@ -358,6 +358,8 @@ redisContext *rdb_connect(conf_t *conf, bool require_master, const char *info)
                                goto connected;
                        }
                } else {
+                       log_debug("rdb, failed to query, remote %s%s%.0u",
+                                 addr_str, (port != 0 ? "@" : ""), port);
                        redisFree(rdb);
                }