Diff

core/certmanager.lua @ 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
parent 13752:49bbdc22846d
child 13821:4aed38a1c971
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);