From 633e0fde435f3e82ff8a3123495395739508fa42 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 7 Feb 2004 21:37:35 +0000 Subject: [PATCH] Be a little quieter at the default debug level. --- src/Network/atlas.cxx | 8 ++++---- src/Network/garmin.cxx | 2 +- src/Network/generic.cxx | 2 +- src/Network/nmea.cxx | 8 ++++---- src/Network/opengc.cxx | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Network/atlas.cxx b/src/Network/atlas.cxx index 2df07d557..a31378547 100644 --- a/src/Network/atlas.cxx +++ b/src/Network/atlas.cxx @@ -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; } } diff --git a/src/Network/garmin.cxx b/src/Network/garmin.cxx index a4e565d14..f2c8f3288 100644 --- a/src/Network/garmin.cxx +++ b/src/Network/garmin.cxx @@ -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 ) { diff --git a/src/Network/generic.cxx b/src/Network/generic.cxx index 062ad9542..2be6cb291 100644 --- a/src/Network/generic.cxx +++ b/src/Network/generic.cxx @@ -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 ) { diff --git a/src/Network/nmea.cxx b/src/Network/nmea.cxx index 8def43ea3..a8aaadc26 100644 --- a/src/Network/nmea.cxx +++ b/src/Network/nmea.cxx @@ -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; } } diff --git a/src/Network/opengc.cxx b/src/Network/opengc.cxx index f99a503f1..bade2f581 100644 --- a/src/Network/opengc.cxx +++ b/src/Network/opengc.cxx @@ -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 ) {