From 2b6ccadef68095ea41b56e4f93f0ad3b7733fdaa Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Sat, 4 Sep 2021 18:13:04 +0100 Subject: [PATCH] src/Aircraft/replay.cxx: extra diagnostic if save to file fails. Also reduced m_continuous_in_config diagnostic. --- src/Aircraft/replay.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Aircraft/replay.cxx b/src/Aircraft/replay.cxx index 72078c877..bad70a507 100644 --- a/src/Aircraft/replay.cxx +++ b/src/Aircraft/replay.cxx @@ -2133,6 +2133,7 @@ FGReplay::saveTape(const SGPath& Filename, SGPropertyNode_ptr MetaData) /* done *********************************************************/ output.close(); + if (!ok) SG_LOG(SG_SYSTEMS, SG_ALERT, "Failed to write to file " << Filename); return ok; } @@ -2420,7 +2421,7 @@ FGReplay::loadTape(const SGPath& Filename, bool Preview, SGPropertyNode& MetaMet m_continuous_in_config = new SGPropertyNode; int e = loadContinuousHeader(Filename.str(), &in, m_continuous_in_config); if (e == 0) { - SG_LOG(SG_SYSTEMS, SG_DEBUG, "m_continuous_in_config is:\n" + SG_LOG(SG_SYSTEMS, SG_BULK, "m_continuous_in_config is:\n" << writePropertiesInline(m_continuous_in_config, true /*write_all*/) << "\n"); copyProperties(m_continuous_in_config->getNode("meta", 0, true), &MetaMeta); if (Preview) {