add some logging showing pkey/cert locations when starting the webserver

This commit is contained in:
Damien Churchill 2009-07-20 09:57:17 +00:00
parent 2591845512
commit 6bb4d857c2

View File

@ -387,6 +387,9 @@ class ServerContextFactory:
"""Creates an SSL context."""
ctx = SSL.Context(SSL.SSLv3_METHOD)
deluge_web = component.get("DelugeWeb")
log.debug("Enabling SSL using:")
log.debug("Pkey: %s", deluge_web.pkey)
log.debug("Cert: %s", deluge_web.cert)
ctx.use_privatekey_file(common.get_default_config_dir(deluge_web.pkey))
ctx.use_certificate_file(common.get_default_config_dir(deluge_web.cert))
return ctx