diff options
author | Kim Alvefur <zash@zash.se> | 2022-05-16 11:39:17 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-05-16 11:39:17 +0200 |
commit | 1f668fed00d475ce4ca7e75d7b677d45a06ec5af (patch) | |
tree | 9c2026e8eb1ad9f9cc0bca06e2d2b80d08ceb215 /core | |
parent | dc79c92cbc4ece6e3709c4954b65d5c97fd1acc5 (diff) | |
download | prosody-1f668fed00d475ce4ca7e75d7b677d45a06ec5af.tar.gz prosody-1f668fed00d475ce4ca7e75d7b677d45a06ec5af.zip |
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?
Diffstat (limited to 'core')
-rw-r--r-- | core/certmanager.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua index c193e824..7a82c786 100644 --- a/core/certmanager.lua +++ b/core/certmanager.lua @@ -159,7 +159,7 @@ local function find_cert_in_index(index, host) 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 @@ local function find_service_cert(service, port) 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), |