diff --git a/mainApp.py b/mainApp.py index 5b51b4b..bdd95ac 100644 --- a/mainApp.py +++ b/mainApp.py @@ -428,11 +428,11 @@ def __loadVfkLayer(self, vfkLayerName): :type vfkLayerName: str :return: """ - QgsMessageLog.logMessage(u"(VFK) Loading vfk layer {}".format(vfkLayerName)) + # QgsMessageLog.logMessage(u"(VFK) Loading vfk layer {}".format(vfkLayerName)) if vfkLayerName in self.__mLoadedLayers: - QgsMessageLog.logMessage( - "(VFK) Vfk layer {} is already loaded".format(vfkLayerName) - ) + # QgsMessageLog.logMessage( + # "(VFK) Vfk layer {} is already loaded".format(vfkLayerName) + # ) return composedURI = self.__mDataSourceName + "|layername=" + vfkLayerName @@ -457,12 +457,12 @@ def __unLoadVfkLayer(self, vfkLayerName): :type vfkLayerName: str :return: """ - QgsMessageLog.logMessage("(VFK) Unloading vfk layer {}".format(vfkLayerName)) + # QgsMessageLog.logMessage("(VFK) Unloading vfk layer {}".format(vfkLayerName)) if vfkLayerName not in self.__mLoadedLayers: - QgsMessageLog.logMessage( - "(VFK) Vfk layer {} is already unloaded".format(vfkLayerName) - ) + # QgsMessageLog.logMessage( + # "(VFK) Vfk layer {} is already unloaded".format(vfkLayerName) + # ) return QgsMapLayerRegistry.instance().removeMapLayer( @@ -497,7 +497,7 @@ def __openDatabase(self, dbPath): :type dbPath: str :return: """ - QgsMessageLog.logMessage("(VFK) Open DB: {}".format(dbPath)) + # QgsMessageLog.logMessage("(VFK) Open DB: {}".format(dbPath)) if not QSqlDatabase.isDriverAvailable('QSQLITE'): raise VFKError(u'Databázový ovladač QSQLITE není dostupný.') @@ -521,7 +521,7 @@ def loadVfkFile(self, fileName): # overwrite database if fileName == self.__fileName[0]: if self.overwriteCheckBox.isChecked(): - QgsMessageLog.logMessage(u'(VFK) Database will be overwritten') + # QgsMessageLog.logMessage(u'(VFK) Database will be overwritten') gdal.SetConfigOption('OGR_VFK_DB_OVERWRITE', 'YES') if self.__mOgrDataSource: diff --git a/vfkTableModel.py b/vfkTableModel.py index 5e7e71d..34d551c 100644 --- a/vfkTableModel.py +++ b/vfkTableModel.py @@ -958,14 +958,14 @@ def __evaluate(self, query): t = QTime() t.start() - QgsMessageLog.logMessage("(VFK) SQL: {}\n".format(query)) + # QgsMessageLog.logMessage("(VFK) SQL: {}\n".format(query)) self.setQuery(query, QSqlDatabase.database(self.__mConnectionName)) while self.canFetchMore(): self.fetchMore() - if t.elapsed() > 500: - QgsMessageLog.logMessage("(VFK) Time elapsed: {} ms\n".format(t.elapsed())) + # if t.elapsed() > 500: + # QgsMessageLog.logMessage("(VFK) Time elapsed: {} ms\n".format(t.elapsed())) if self.lastError().isValid(): iface.messageBar().pushWarning(