Initialize logging before plugin manager, otherwise the logging output of the latter will not be visible
This commit is contained in:
parent
f3f640c24f
commit
ec85cccc75
2 changed files with 6 additions and 2 deletions
|
|
@ -223,6 +223,9 @@ class PluginManager(object):
|
|||
implementations = plugin.get_implementations(plugin_type)
|
||||
self.plugin_implementations[plugin_type] += ( (name, implementation) for implementation in implementations )
|
||||
|
||||
self.log_registered_plugins()
|
||||
|
||||
def log_registered_plugins(self):
|
||||
if len(self.plugins) <= 0:
|
||||
self.logger.info("No plugins found")
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -217,14 +217,15 @@ class Server():
|
|||
|
||||
# first initialize the settings singleton and make sure it uses given configfile and basedir if available
|
||||
self._initSettings(self._configfile, self._basedir)
|
||||
pluginManager = octoprint.plugin.plugin_manager(init=True)
|
||||
|
||||
# then initialize logging
|
||||
self._initLogging(self._debug, self._logConf)
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
logger.info("Starting OctoPrint %s" % DISPLAY_VERSION)
|
||||
|
||||
# then initialize the plugin manager
|
||||
pluginManager = octoprint.plugin.plugin_manager(init=True)
|
||||
|
||||
eventManager = events.eventManager()
|
||||
analysisQueue = octoprint.filemanager.analysis.AnalysisQueue()
|
||||
slicingManager = octoprint.slicing.SlicingManager(settings().getBaseFolder("slicingProfiles"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue