instead of qMessageBox using error print in log view