Reduced the verbocity level of the property loader.

This commit is contained in:
curt
2001-01-31 15:35:43 +00:00
parent 57811b5371
commit a37d9a2d8e
3 changed files with 9 additions and 6 deletions

View 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)

View 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();
}

View 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;