From ec8b55d3c5b95c2514f92a58af284f2a1af367ee Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 27 Feb 2017 15:50:10 +0000 Subject: [PATCH] Explicitly log nav-cache read-only flag. --- src/Navaids/NavDataCache.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Navaids/NavDataCache.cxx b/src/Navaids/NavDataCache.cxx index e40894246..f798cc057 100644 --- a/src/Navaids/NavDataCache.cxx +++ b/src/Navaids/NavDataCache.cxx @@ -261,6 +261,8 @@ public: SG_LOG(SG_NAVCACHE, SG_INFO, "NavCache at:" << path); readOnly = fgGetBool("/sim/fghome-readonly", false); + SG_LOG(SG_NAVCACHE, SG_INFO, "NavCache read-only flags is:" << readOnly); + if (!readOnly && !path.canWrite()) { throw sg_exception("Nav-cache file is not writeable"); }