Mercurial > prosody-hg
comparison core/certmanager.lua @ 4408:21881619a394
certmanager: More informative logging.
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Tue, 01 Nov 2011 23:57:42 +0500 |
| parents | c69cbac4178f |
| children | 43469a2d124d |
comparison
equal
deleted
inserted
replaced
| 4407:f78c6f5fa090 | 4408:21881619a394 |
|---|---|
| 73 elseif reason == "(null)" or not reason then | 73 elseif reason == "(null)" or not reason then |
| 74 reason = "Check that the file exists and the permissions are correct"; | 74 reason = "Check that the file exists and the permissions are correct"; |
| 75 else | 75 else |
| 76 reason = "Reason: "..tostring(reason):lower(); | 76 reason = "Reason: "..tostring(reason):lower(); |
| 77 end | 77 end |
| 78 log("error", "SSL/TLS: Failed to load %s: %s", file, reason); | 78 log("error", "SSL/TLS: Failed to load %s: %s (host: %s)", file, reason, host); |
| 79 else | 79 else |
| 80 log("error", "SSL/TLS: Error initialising for host %s: %s", host, err ); | 80 log("error", "SSL/TLS: Error initialising for host %s: %s (host: %s)", host, err, host); |
| 81 end | 81 end |
| 82 end | 82 end |
| 83 return ctx, err; | 83 return ctx, err; |
| 84 end | 84 end |
| 85 | 85 |
