]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/props.cxx
Clean-up: move autosave.xml loading code to proper method
[flightgear.git] / src / Network / props.cxx
index 5b9eb7a1a64f6b5ad9577e1fa10699feb1399208..7240d5cb236bcd360f1371ce348e909479bc0df2 100644 (file)
@@ -36,6 +36,7 @@
 
 #include <sstream>
 #include <iostream>
+#include <errno.h>
 
 #include <Main/globals.hxx>
 #include <Main/viewmgr.hxx>
@@ -291,7 +292,7 @@ PropsChannel::foundTerminator()
                     if ( !globals->get_commands()
                              ->execute( "reinit", &args) )
                     {
-                        SG_LOG( SG_GENERAL, SG_ALERT,
+                        SG_LOG( SG_NETWORK, SG_ALERT,
                                 "Command " << tokens[1] << " failed.");
                         if ( mode == PROMPT ) {
                             tmp += "*failed*";
@@ -356,7 +357,7 @@ PropsChannel::foundTerminator()
                     if ( !globals->get_commands()
                              ->execute(tokens[1].c_str(), &args) )
                     {
-                        SG_LOG( SG_GENERAL, SG_ALERT,
+                        SG_LOG( SG_NETWORK, SG_ALERT,
                                 "Command " << tokens[1] << " failed.");
                         if ( mode == PROMPT ) {
                             tmp += "*failed*";
@@ -449,6 +450,7 @@ FGProps::FGProps( const vector<string>& tokens )
     } else {
         throw FGProtocolConfigError( "FGProps: incorrect number of configuration arguments" );
     }
+    printf( "Property server started on port %d\n", port );
 }
 
 /**