1
0
Fork 0

print the whole autosave.xml path, not just the filename. Unfortunately,

in the case of fg_init.cxx we'll only see that if the log-level is set
in preferences.xml, because command line options weren't even processed
at that time.  :-/
This commit is contained in:
mfranz 2006-08-10 11:21:15 +00:00
parent 6a6eb2c00b
commit ad0921f3e0
2 changed files with 3 additions and 3 deletions

View file

@ -211,14 +211,14 @@ do_exit (const SGPropertyNode * arg)
#endif #endif
config.append( "autosave.xml" ); config.append( "autosave.xml" );
config.create_dir( 0700 ); config.create_dir( 0700 );
SG_LOG(SG_IO, SG_INFO, "Saving user settings to autosave.xml"); SG_LOG(SG_IO, SG_INFO, "Saving user settings to " << config.str());
try { try {
writeProperties(config.str(), globals->get_props(), false, SGPropertyNode::USERARCHIVE); writeProperties(config.str(), globals->get_props(), false, SGPropertyNode::USERARCHIVE);
} catch (const sg_exception &e) { } catch (const sg_exception &e) {
guiErrorMessage("Error writing autosave.xml: ", e); guiErrorMessage("Error writing autosave.xml: ", e);
} }
SG_LOG(SG_INPUT, SG_BULK, "Finished Saving user settings"); SG_LOG(SG_INPUT, SG_DEBUG, "Finished Saving user settings");
} }
} }
fgExit(arg->getIntValue("status", 0)); fgExit(arg->getIntValue("status", 0));

View file

@ -604,7 +604,7 @@ bool fgInitConfig ( int argc, char **argv ) {
#endif #endif
fgSetString("/sim/fg-home", config.c_str()); fgSetString("/sim/fg-home", config.c_str());
config.append( "autosave.xml" ); config.append( "autosave.xml" );
SG_LOG(SG_INPUT, SG_INFO, "Reading user settings from autosave.xml"); SG_LOG(SG_INPUT, SG_INFO, "Reading user settings from " << config.str());
try { try {
readProperties(config.str(), globals->get_props(), SGPropertyNode::USERARCHIVE); readProperties(config.str(), globals->get_props(), SGPropertyNode::USERARCHIVE);
} catch (...) { } catch (...) {