use logMessage rather than QgsDebugMsg