]> git.mxchange.org Git - flightgear.git/commitdiff
Be a little quieter at the default debug level.
authordavid <david>
Sat, 7 Feb 2004 21:37:35 +0000 (21:37 +0000)
committerdavid <david>
Sat, 7 Feb 2004 21:37:35 +0000 (21:37 +0000)
src/Network/atlas.cxx
src/Network/garmin.cxx
src/Network/generic.cxx
src/Network/nmea.cxx
src/Network/opengc.cxx

index 2df07d557fdd714f4d5accc7e517b5d255f9b445..a31378547530262ae3c7e0fd2222865fa3aaabed 100644 (file)
@@ -163,7 +163,7 @@ bool FGAtlas::gen_message() {
     atlas_sentence += patla_sum;
     atlas_sentence += "\n";
 
-    cout << atlas_sentence;
+    //    cout << atlas_sentence;
 
     length = atlas_sentence.length();
     strncpy( buf, atlas_sentence.c_str(), length );
@@ -544,20 +544,20 @@ bool FGAtlas::process() {
     if ( get_direction() == SG_IO_OUT ) {
        gen_message();
        if ( ! io->write( buf, length ) ) {
-           SG_LOG( SG_IO, SG_ALERT, "Error writing data." );
+           SG_LOG( SG_IO, SG_WARN, "Error writing data." );
            return false;
        }
     } else if ( get_direction() == SG_IO_IN ) {
        if ( (length = io->readline( buf, FG_MAX_MSG_SIZE )) > 0 ) {
            parse_message();
        } else {
-           SG_LOG( SG_IO, SG_ALERT, "Error reading data." );
+           SG_LOG( SG_IO, SG_WARN, "Error reading data." );
            return false;
        }
        if ( (length = io->readline( buf, FG_MAX_MSG_SIZE )) > 0 ) {
            parse_message();
        } else {
-           SG_LOG( SG_IO, SG_ALERT, "Error reading data." );
+           SG_LOG( SG_IO, SG_WARN, "Error reading data." );
            return false;
        }
     }
index a4e565d1498c4ce69b3286a4485cedf9d20a02b6..f2c8f32880486396370c51482e8c93f3181687c3 100644 (file)
@@ -392,7 +392,7 @@ bool FGGarmin::process() {
     if ( get_direction() == SG_IO_OUT ) {
        gen_message();
        if ( ! io->write( buf, length ) ) {
-           SG_LOG( SG_IO, SG_ALERT, "Error writing data." );
+           SG_LOG( SG_IO, SG_WARN, "Error writing data." );
            return false;
        }
     } else if ( get_direction() == SG_IO_IN ) {
index 062ad9542944b02becd9cbee4599278fbe127a47..2be6cb29145313841061304306cdf65b50246976 100644 (file)
@@ -211,7 +211,7 @@ bool FGGeneric::process() {
     if ( get_direction() == SG_IO_OUT ) {
         gen_message();
         if ( ! io->write( buf, length ) ) {
-            SG_LOG( SG_IO, SG_ALERT, "Error writing data." );
+            SG_LOG( SG_IO, SG_WARN, "Error writing data." );
             return false;
         }
     } else if ( get_direction() == SG_IO_IN ) {
index 8def43ea336aded2e5cb53434190f3150949476e..a8aaadc26bd74550db7a36a524a5f8ef52bf27f6 100644 (file)
@@ -165,7 +165,7 @@ bool FGNMEA::gen_message() {
     nmea_sentence += gsa;
     nmea_sentence += "\r\n";
 
-    cout << nmea_sentence;
+//     cout << nmea_sentence;
 
     length = nmea_sentence.length();
     strncpy( buf, nmea_sentence.c_str(), length );
@@ -496,20 +496,20 @@ bool FGNMEA::process() {
     if ( get_direction() == SG_IO_OUT ) {
        gen_message();
        if ( ! io->write( buf, length ) ) {
-           SG_LOG( SG_IO, SG_ALERT, "Error writing data." );
+           SG_LOG( SG_IO, SG_WARN, "Error writing data." );
            return false;
        }
     } else if ( get_direction() == SG_IO_IN ) {
        if ( (length = io->readline( buf, FG_MAX_MSG_SIZE )) > 0 ) {
            parse_message();
        } else {
-           SG_LOG( SG_IO, SG_ALERT, "Error reading data." );
+           SG_LOG( SG_IO, SG_WARN, "Error reading data." );
            return false;
        }
        if ( (length = io->readline( buf, FG_MAX_MSG_SIZE )) > 0 ) {
            parse_message();
        } else {
-           SG_LOG( SG_IO, SG_ALERT, "Error reading data." );
+           SG_LOG( SG_IO, SG_WARN, "Error reading data." );
            return false;
        }
     }
index f99a503f1656a09793b2260f90489c75ff410cd4..bade2f581374175c0975c824d54d1cebaed9cafa 100644 (file)
@@ -225,7 +225,7 @@ bool FGOpenGC::process() {
         collect_data( cur_fdm_state, &buf );
        //collect_data( &buf );
        if ( ! io->write( (char *)(& buf), length ) ) {
-           SG_LOG( SG_IO, SG_ALERT, "Error writing data." );
+           SG_LOG( SG_IO, SG_WARN, "Error writing data." );
            return false;
        }
     } else if ( get_direction() == SG_IO_IN ) {