Skip to content

Commit

Permalink
Merge pull request #1501 from syyyr/print-through-logger
Browse files Browse the repository at this point in the history
Use osmscout logger more
  • Loading branch information
Framstag committed Sep 15, 2023
2 parents 74095f1 + 61feb47 commit 672b7cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libosmscout-client-qt/src/osmscoutclientqt/MapManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ bool MapDirectory::deleteDatabase()
MapManager::MapManager(QStringList databaseLookupDirs, SettingsRef settings):
databaseLookupDirs(databaseLookupDirs)
{
qDebug() << "MapManager ctor";
osmscout::log.Debug() << "MapManager ctor";
webCtrl.setCookieJar(new PersistentCookieJar(settings));
// we don't use disk cache here
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void TiledMapRenderer::Initialize()
{
{
QMutexLocker locker(&lock);
qDebug() << "Initialize";
osmscout::log.Debug() << "Initialize";

// create tile downloader in correct thread
tileDownloader = new OsmTileDownloader(tileCacheDirectory,settings->GetOnlineTileProvider());
Expand Down Expand Up @@ -505,7 +505,7 @@ void TiledMapRenderer::onLoadJobFinished(QMap<QString,QMap<osmscout::TileKey,osm
QMutexLocker tileCacheLocker(&tileCacheMutex);

if (loadEpoch != offlineTileCache.getEpoch()){
qWarning() << "Rendered from outdated data" << loadEpoch << "!=" << offlineTileCache.getEpoch();
osmscout::log.Warn() << "Rendered from outdated data" << loadEpoch << "!=" << offlineTileCache.getEpoch();
}

if (width == 1 && height == 1){
Expand Down

0 comments on commit 672b7cb

Please sign in to comment.