]> git.mxchange.org Git - flightgear.git/commitdiff
print the whole autosave.xml path, not just the filename. Unfortunately,
authormfranz <mfranz>
Thu, 10 Aug 2006 11:21:15 +0000 (11:21 +0000)
committermfranz <mfranz>
Thu, 10 Aug 2006 11:21:15 +0000 (11:21 +0000)
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
src/Main/fg_init.cxx

index 921f287142685451cb79f61fe57f32f1ce071aae..9259a18ac9f6c98b6248234a61e69ef0d6f5981f 100644 (file)
@@ -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));
index ab29bed5ed3c1d2c01e9c717c1feda0efe3a77d9..7c7464025d61676e82919e6769cb1234af04ccb1 100644 (file)
@@ -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 (...) {