Commit a986b702 authored by Volker Krause's avatar Volker Krause
Browse files

Silence debug output a bit

parent 99b64a88
......@@ -96,7 +96,6 @@ void GBFSJob::parseDiscoverData()
// pick the feeds with the best language for our current locale
if (data.size() == 1) {
// only one set of feeds
qDebug() << "only one set of feeds found";
m_feeds = data.begin().value().toObject().value(QLatin1String("feeds")).toArray();
} else if (!data.empty()) {
const auto localeLangs = QLocale().uiLanguages();
......@@ -177,7 +176,6 @@ void GBFSJob::processFeeds()
connect(reply, &QNetworkReply::finished, this, [this, reply, type]() { fetchFinished(reply, type); });
++m_pendingJobs;
} else {
qDebug() << "reusing cached" << name;
parseData(m_store.loadData(type), type);
}
proccedAtLeastOneFeed = true;
......@@ -427,14 +425,12 @@ void GBFSJob::finalize()
// covered area is reasonable, take as-is
if (Location::distance(m_latitudes.front(), m_longitudes.front(), m_latitudes.back(), m_longitudes.back()) <= 50'000) {
qDebug() << "coordinates look plausible, skipping outlier filter";
minLat = m_latitudes.front();
minLon = m_longitudes.front();
maxLat = m_latitudes.back();
maxLon = m_longitudes.back();
} else {
// try to filter out outliers
qDebug() << "performing outlier filtering";
filterOutliers(m_latitudes, minLat, maxLat, [](auto lat1, auto lat2) { return Location::distance(lat1, 0.0, lat2, 0.0); });
filterOutliers(m_longitudes, minLon, maxLon, [&](auto lon1, auto lon2) {
const auto lat = (maxLat - minLat) / 2.0;
......
......@@ -138,7 +138,7 @@ void GBFSProbe::discoverNextFeed()
m_throttledFeeds.push_back(m_gbfsFeeds[m_currentFeedIdx]);
qWarning() << "Scheduling for later:" << m_gbfsFeeds[m_currentFeedIdx] << job->errorMessage();
} else if (job->error() != GBFSJob::NoError) {
qWarning() << m_gbfsFeeds[m_currentFeedIdx] << job->error() << job->errorMessage();
qWarning() << m_gbfsFeeds[m_currentFeedIdx] << job->error() << job->errorMessage() << "- skipping";
} else if (job->service().boundingBox.isEmpty()) {
qWarning() << m_gbfsFeeds[m_currentFeedIdx] << "has an empty bounding box - skipping";
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment