add logging to load function of plugin loader

pull/1342/head
Joran Honig 5 years ago
parent 3acc3ef3a6
commit d9f6f9b6e6
  1. 2
      mythril/plugin/loader.py

@ -26,6 +26,7 @@ class MythrilPluginLoader(object, metaclass=Singleton):
def load(self, plugin: MythrilPlugin):
"""Loads the passed plugin"""
logging.info(f"Loading plugin: {plugin.name}")
if not isinstance(plugin, MythrilPlugin):
raise ValueError("Passed plugin is not of type MythrilPlugin")
@ -37,6 +38,7 @@ class MythrilPluginLoader(object, metaclass=Singleton):
raise UnsupportedPluginType("Passed plugin type is not yet supported")
self.loaded_plugins.append(plugin)
logging.info(f"Finished loading plugin: {plugin.name}")
def _load_detection_module(self, plugin: DetectionModule):
pass

Loading…
Cancel
Save