Comparison

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
comparison
equal deleted inserted replaced
13816:4122978f2575 13818:8a7dbb291b02
114 end 114 end
115 end 115 end
116 else 116 else
117 log("debug", "Skipping expired certificate: %s", full); 117 log("debug", "Skipping expired certificate: %s", full);
118 end 118 end
119 else
120 log("debug", "Skipping non-certificate (based on contents): %s", full);
119 end 121 end
120 f:close(); 122 f:close();
121 elseif err then 123 elseif err then
122 log("debug", "Failed to open file for indexing: %s", full); 124 log("debug", "Skipping file due to error: %s", err);
123 end 125 end
126 else
127 log("debug", "Skipping non-certificate (based on filename): %s", full);
124 end 128 end
125 end 129 end
126 log("debug", "Certificate index in %s: %q", dir, files_by_name); 130 log("debug", "Certificate index in %s: %q", dir, files_by_name);
127 -- | hostname | filename | service | 131 -- | hostname | filename | service |
128 return files_by_name; 132 return files_by_name;