From 7572d8f6eefff74cbe098dea906189ca8b8d3e2f Mon Sep 17 00:00:00 2001 From: Nathaniel MacArthur-Warner Date: Thu, 24 Dec 2020 14:43:14 -0800 Subject: [PATCH] Another logging improvement --- simgear/scene/util/OrthophotoManager.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/simgear/scene/util/OrthophotoManager.cxx b/simgear/scene/util/OrthophotoManager.cxx index 28b1c3ca..3f6ed639 100644 --- a/simgear/scene/util/OrthophotoManager.cxx +++ b/simgear/scene/util/OrthophotoManager.cxx @@ -238,6 +238,8 @@ namespace simgear { const Texture2DRef texture = textureFromImage(image); const OrthophotoBounds bbox = OrthophotoBounds::fromBucket(bucket); return new Orthophoto(texture, bbox); + } else { + SG_LOG(SG_OSG, SG_ALERT, "Failed to load orthophoto with path " << dds_path); } } @@ -250,6 +252,8 @@ namespace simgear { const Texture2DRef texture = textureFromImage(image); const OrthophotoBounds bbox = OrthophotoBounds::fromBucket(bucket); return new Orthophoto(texture, bbox); + } else { + SG_LOG(SG_OSG, SG_ALERT, "Failed to load orthophoto with path " << png_path); } } }