From 854ad8c3fa75af50a13b070958858443b5cff6e7 Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Wed, 22 Dec 2021 23:41:58 -0600 Subject: [PATCH] apt_signs: provide content with Apt Sign messages. Useful to help track down which sign failed to parse. --- simgear/scene/tgdb/apt_signs.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/simgear/scene/tgdb/apt_signs.cxx b/simgear/scene/tgdb/apt_signs.cxx index 7c59b2f8..17b3eb38 100644 --- a/simgear/scene/tgdb/apt_signs.cxx +++ b/simgear/scene/tgdb/apt_signs.cxx @@ -334,7 +334,7 @@ void AirportSignBuilder::addSign(const SGGeod& pos, double heading, const std::s } if (!*s) { - SG_LOG(SG_TERRAIN, SG_INFO, SIGN "unclosed { in sign contents"); + SG_LOG(SG_TERRAIN, SG_INFO, SIGN "unclosed { in sign '" << content << "'."); } else if (s[1] == '=') { for (s += 2; *s; s++) { value += *s; @@ -342,7 +342,7 @@ void AirportSignBuilder::addSign(const SGGeod& pos, double heading, const std::s break; } if (!*s) - SG_LOG(SG_TERRAIN, SG_INFO, SIGN "unclosed { in sign contents"); + SG_LOG(SG_TERRAIN, SG_INFO, SIGN "unclosed { in sign '" << content << "'."); } if (name == "no-entry") { @@ -430,7 +430,7 @@ void AirportSignBuilder::addSign(const SGGeod& pos, double heading, const std::s } if (name[0] == '@') { - SG_LOG(SG_TERRAIN, SG_INFO, SIGN "ignoring unknown command `" << name << '\''); + SG_LOG(SG_TERRAIN, SG_INFO, SIGN "ignoring unknown command '" << name << "' in '" << content << "'."); continue; } } @@ -442,7 +442,7 @@ void AirportSignBuilder::addSign(const SGGeod& pos, double heading, const std::s SGMaterialGlyph *glyph = material->get_glyph(name); if (!glyph) { - SG_LOG( SG_TERRAIN, SG_INFO, SIGN "unsupported glyph '" << *s << '\''); + SG_LOG( SG_TERRAIN, SG_INFO, SIGN "unsupported glyph '" << *s << "' in '" << content << "'."); continue; }