]> git.mxchange.org Git - simgear.git/commitdiff
Reduced the verbocity level of the property loader.
authorcurt <curt>
Wed, 31 Jan 2001 15:35:43 +0000 (15:35 +0000)
committercurt <curt>
Wed, 31 Jan 2001 15:35:43 +0000 (15:35 +0000)
simgear/misc/Makefile.am
simgear/misc/props_io.cxx
simgear/misc/zfstream.cxx

index 8e91feb7c3d26fb27c07b5263195ed63802723be..9623cc6420fab45dd55212bc75eeb2abb74e60f1 100644 (file)
@@ -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)
index aac7735bb32eba0760aedceb6f1729c6d47aa4a1..a113db5e403dbef10a19cf7cbd24c9c8b6491333 100644 (file)
@@ -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();
 }
 
index 454af0d280302d8fa115d2bb8e7cb2728fa1f828..63d114774c5f8e030e09eb3f2fab8e160c264fc3 100644 (file)
@@ -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;