From ad0921f3e01e6cad5219eda5ed3d92958db5e595 Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 10 Aug 2006 11:21:15 +0000 Subject: [PATCH] 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. :-/ --- src/Main/fg_commands.cxx | 4 ++-- src/Main/fg_init.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index 921f28714..9259a18ac 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -211,14 +211,14 @@ do_exit (const SGPropertyNode * arg) #endif config.append( "autosave.xml" ); 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 { writeProperties(config.str(), globals->get_props(), false, SGPropertyNode::USERARCHIVE); } catch (const sg_exception &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)); diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index ab29bed5e..7c7464025 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -604,7 +604,7 @@ bool fgInitConfig ( int argc, char **argv ) { #endif fgSetString("/sim/fg-home", config.c_str()); 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 { readProperties(config.str(), globals->get_props(), SGPropertyNode::USERARCHIVE); } catch (...) { -- 2.39.5