Changeset

13818:8a7dbb291b02 13.0

certmanager: Improve logging for all cases where certs are skipped
author Matthew Wild <mwild1@gmail.com>
date Thu, 03 Apr 2025 16:53:48 +0100
parents 13816:4122978f2575
children 13819:3ee95eb17045
files core/certmanager.lua
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/certmanager.lua	Thu Apr 03 15:11:58 2025 +0100
+++ b/core/certmanager.lua	Thu Apr 03 16:53:48 2025 +0100
@@ -116,11 +116,15 @@
 					else
 						log("debug", "Skipping expired certificate: %s", full);
 					end
+				else
+					log("debug", "Skipping non-certificate (based on contents): %s", full);
 				end
 				f:close();
 			elseif err then
-				log("debug", "Failed to open file for indexing: %s", full);
+				log("debug", "Skipping file due to error:  %s", err);
 			end
+		else
+			log("debug", "Skipping non-certificate (based on filename): %s", full);
 		end
 	end
 	log("debug", "Certificate index in %s: %q", dir, files_by_name);