Changeset

12507:e242a6e74424 0.12

core.certmanager: Expand debug messages about cert lookups in index Answers my recurring question of > Using cert "certs/example.com.crt" from index ... for what?
author Kim Alvefur <zash@zash.se>
date Mon, 16 May 2022 11:39:17 +0200
parents 12505:604bb5b8362d
children 12508:e6cfd0a6f0da 12509:a92e1de62c9e
files core/certmanager.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core/certmanager.lua	Sun May 15 23:16:14 2022 +0200
+++ b/core/certmanager.lua	Mon May 16 11:39:17 2022 +0200
@@ -159,7 +159,7 @@
 	if certs then
 		local cert_filename, services = next(certs);
 		if services["*"] then
-			log("debug", "Using cert %q from index", cert_filename);
+			log("debug", "Using cert %q from index for host %q", cert_filename, host);
 			return {
 				certificate = cert_filename,
 				key = find_matching_key(cert_filename),
@@ -185,7 +185,7 @@
 	for _, certs in pairs(cert_index) do
 		for cert_filename, services in pairs(certs) do
 			if services[service] or services["*"] then
-				log("debug", "Using cert %q from index", cert_filename);
+				log("debug", "Using cert %q from index for service %s port %d", cert_filename, service, port);
 				return {
 					certificate = cert_filename,
 					key = find_matching_key(cert_filename),