Skip to content

Commit

Permalink
comment-out log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Aug 19, 2018
1 parent c15c121 commit 9497342
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions mainApp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(
Expand Down Expand Up @@ -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ý.')

Expand All @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions vfkTableModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 9497342

Please sign in to comment.