Hide a couple of debugging messages

They are useful to show when trying to figure out what's going on, so just
move them behind a check for verbose.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-09-23 12:20:21 -07:00
parent c9f72e510a
commit a30e78140f
2 changed files with 4 additions and 2 deletions

View file

@ -785,7 +785,8 @@ void MainTab::updateDiveInfo(bool clear)
else
ui.cylinders->view()->hideColumn(CylindersModel::USE);
qDebug() << "Set the current dive site:" << displayed_dive.dive_site_uuid;
if (verbose)
qDebug() << "Set the current dive site:" << displayed_dive.dive_site_uuid;
emit diveSiteChanged(get_dive_site_by_uuid(displayed_dive.dive_site_uuid));
}

View file

@ -1376,7 +1376,8 @@ int getCloudURL(QString &filename)
prefs.cloud_storage_email_encoded = strdup(qPrintable(email));
}
filename = QString(QString(prefs.cloud_git_url) + "/%1[%1]").arg(email);
qDebug() << "cloud URL set as" << filename;
if (verbose)
qDebug() << "cloud URL set as" << filename;
return 0;
}