fix #1048
All the logging related  code was moved to safe. in safe_qgis we only add the qgis handler and if needed sentry
Merge pull request #1056 from mbernasocchi/inasafe-1048

fix #1048