From a37d9a2d8ea847d24077953210b977499d50ad6e Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 31 Jan 2001 15:35:43 +0000 Subject: [PATCH] Reduced the verbocity level of the property loader. --- simgear/misc/Makefile.am | 2 +- simgear/misc/props_io.cxx | 9 ++++----- simgear/misc/zfstream.cxx | 4 ++++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/simgear/misc/Makefile.am b/simgear/misc/Makefile.am index 8e91feb7..9623cc64 100644 --- a/simgear/misc/Makefile.am +++ b/simgear/misc/Makefile.am @@ -28,7 +28,7 @@ libsgmisc_a_SOURCES = \ noinst_PROGRAMS = props_test -props_test_SOURCES = props_test.cxx props_test.hxx +props_test_SOURCES = props_test.cxx props_test_LDADD = libsgmisc.a ../xml/libsgxml.a ../debug/libsgdebug.a INCLUDES += -I$(top_srcdir) $(ZLIB_INCL) diff --git a/simgear/misc/props_io.cxx b/simgear/misc/props_io.cxx index aac7735b..a113db5e 100644 --- a/simgear/misc/props_io.cxx +++ b/simgear/misc/props_io.cxx @@ -139,13 +139,12 @@ PropsVisitor::endElement (const char * name) << " assuming 'unknown'"); ret = st.node->setUnknownValue(_data); } + if (!ret) + FG_LOG(FG_INPUT, FG_ALERT, "readProperties: Failed to set " + << st.node->getPath() << " to value \"" + << _data << "\" with type " << st.type); } - if (!ret) - FG_LOG(FG_INPUT, FG_ALERT, "readProperties: Failed to set " - << st.node->getPath() << " to value \"" - << _data << " with type " << st.type); - pop_state(); } diff --git a/simgear/misc/zfstream.cxx b/simgear/misc/zfstream.cxx index 454af0d2..63d11477 100644 --- a/simgear/misc/zfstream.cxx +++ b/simgear/misc/zfstream.cxx @@ -133,11 +133,15 @@ gzfilebuf::attach( int file_descriptor, ios_openmode io_mode ) gzfilebuf* gzfilebuf::close() { + // cout << "closing ..." ; if ( is_open() ) { sync(); gzclose( file ); file = NULL; + // cout << "done" << endl; + } else { + // cout << "error" << endl; } return this; -- 2.39.5