mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 00:22:28 +02:00
clean up disco logging
This commit is contained in:
@@ -80,7 +80,7 @@ class PluginEntryPoint(object):
|
|||||||
def prepared(self):
|
def prepared(self):
|
||||||
"""Has the plugin been prepared already?"""
|
"""Has the plugin been prepared already?"""
|
||||||
if not self.initialized:
|
if not self.initialized:
|
||||||
logging.debug(".prepared called on uninitialized %s", self)
|
logging.debug(".prepared called on uninitialized %r", self)
|
||||||
return self._prepared is not None
|
return self._prepared is not None
|
||||||
|
|
||||||
def prepare(self):
|
def prepare(self):
|
||||||
@@ -90,10 +90,10 @@ class PluginEntryPoint(object):
|
|||||||
try:
|
try:
|
||||||
self._initialized.prepare()
|
self._initialized.prepare()
|
||||||
except errors.LetsEncryptMisconfigurationError as error:
|
except errors.LetsEncryptMisconfigurationError as error:
|
||||||
logging.debug("Misconfigured %s: %s", self, error)
|
logging.debug("Misconfigured %r: %s", self, error)
|
||||||
self._prepared = error
|
self._prepared = error
|
||||||
except errors.LetsEncryptNoInstallationError as error:
|
except errors.LetsEncryptNoInstallationError as error:
|
||||||
logging.debug("No installation (%s): %s", self, error)
|
logging.debug("No installation (%r): %s", self, error)
|
||||||
self._prepared = error
|
self._prepared = error
|
||||||
else:
|
else:
|
||||||
self._prepared = True
|
self._prepared = True
|
||||||
@@ -150,8 +150,8 @@ class PluginsRegistry(collections.Mapping):
|
|||||||
if interfaces.IPluginFactory.providedBy(plugin_ep.plugin_cls):
|
if interfaces.IPluginFactory.providedBy(plugin_ep.plugin_cls):
|
||||||
plugins[plugin_ep.name] = plugin_ep
|
plugins[plugin_ep.name] = plugin_ep
|
||||||
else: # pragma: no cover
|
else: # pragma: no cover
|
||||||
logging.warning("Plugin entry point %s does not provide "
|
logging.warning(
|
||||||
"IPluginFactory, skipping", plugin_ep)
|
"%r does not provide IPluginFactory, skipping", plugin_ep)
|
||||||
return cls(plugins)
|
return cls(plugins)
|
||||||
|
|
||||||
def __getitem__(self, name):
|
def __getitem__(self, name):
|
||||||
|
|||||||
Reference in New Issue
Block a user