enricofer / go2streetview

22 stars 22 forks source link

Replace print statements with QgsMessageLog #30

Closed dwsilk closed 7 years ago

dwsilk commented 7 years ago

Closes #29

This pull request replaces all print statements with QgsMessageLog.logMessage().

logMessage takes a message (unchanged from the existing print statement), a tag (which means that the messages are logged to a new tab for go2streetview in the Log Messages panel), and a log level. I've guessed the log level based on apparent severity.

enricofer commented 7 years ago

Thanks dwsilk. The code is a bit messy. I will clean it when QGIS3 will come.