certmanager: Adjust error messages to be non-specific about 'host' (so we can specify a service name instead ffor SSL)
authorMatthew Wild <mwild1@gmail.com>
Fri, 11 May 2012 20:24:15 +0100
changeset 4855 a31ea431d906
parent 4854 dab55c6f7710
child 4856 3e3e282f20a3
certmanager: Adjust error messages to be non-specific about 'host' (so we can specify a service name instead ffor SSL)
core/certmanager.lua
--- a/core/certmanager.lua	Fri May 11 18:55:23 2012 +0100
+++ b/core/certmanager.lua	Fri May 11 20:24:15 2012 +0100
@@ -75,9 +75,9 @@
 			else
 				reason = "Reason: "..tostring(reason):lower();
 			end
-			log("error", "SSL/TLS: Failed to load %s: %s (host: %s)", file, reason, host);
+			log("error", "SSL/TLS: Failed to load %s: %s (for %s)", file, reason, host);
 		else
-			log("error", "SSL/TLS: Error initialising for host %s: %s (host: %s)", host, err, host);
+			log("error", "SSL/TLS: Error initialising for %s: %s", host, err);
 		end
 	end
 	return ctx, err;