Mobile: use appendTextToLog to get timestamps in logs

This helps tremendously when tracking down some problems. We should
never use console.log.

In the process this also updates a couple of the messages to be clearer.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2019-10-30 09:16:58 +01:00
parent 9c8fbe494d
commit 113cb1acc0
6 changed files with 30 additions and 30 deletions

View file

@ -30,10 +30,10 @@ Kirigami.Page {
onDownloadFinished : {
progressBar.visible = false
if (rowCount() > 0) {
console.log(rowCount() + " dive downloaded")
manager.appendTextToLog(rowCount() + " dive downloaded")
divesDownloaded = true
} else {
console.log("no new dives downloaded")
manager.appendTextToLog("no new dives downloaded")
divesDownloaded = false
}
manager.appendTextToLog("DCDownloadThread finished")
@ -361,7 +361,7 @@ Kirigami.Page {
selected: model.selected ? model.selected : false
onClicked : {
console.log("Selecting index" + index);
manager.appendTextToLog("Selecting index" + index);
importModel.selectRow(index)
}
}