Added args to log so variables can be logged aswell

This commit is contained in:
Jaime van Kessel 2014-11-17 14:45:28 +01:00
parent 0c82cb92b5
commit 0d5621e148

View File

@ -10,7 +10,7 @@ class PrinterApplication(QtApplication):
self._plugin_registry.loadPlugins({ "type": "StorageDevice" })
self._plugin_registry.loadPlugins({ "type": "View" })
self._plugin_registry.loadPlugins({ "type": "MeshHandler" })
self._plugin_registry.loadPlugins({ "type": "Logging"})
self._plugin_registry.loadPlugins({ "type": "Logger"})
self.getController().setActiveView("MeshView")
@ -18,7 +18,7 @@ class PrinterApplication(QtApplication):
mesh = SceneObject()
mesh.setMeshData(self.getMeshFileHandler().read("plugins/STLReader/simpleTestCube.stl",self.getStorageDevice('local')))
root.addChild(mesh)
self.log('i',"Application started")
self.setMainQml(os.path.dirname(__file__) + "/Printer.qml")
self.initializeEngine()