|
From: <to...@us...> - 2009-01-31 07:50:49
|
Revision: 376
http://gearbox.svn.sourceforge.net/gearbox/?rev=376&view=rev
Author: tobasco
Date: 2009-01-31 07:50:48 +0000 (Sat, 31 Jan 2009)
Log Message:
-----------
reduced chattiness
Modified Paths:
--------------
gearbox/trunk/src/gbxsmartbatteryacfr/oceanserver.cpp
gearbox/trunk/src/gbxsmartbatteryacfr/oceanserverreader.cpp
Modified: gearbox/trunk/src/gbxsmartbatteryacfr/oceanserver.cpp
===================================================================
--- gearbox/trunk/src/gbxsmartbatteryacfr/oceanserver.cpp 2009-01-31 00:32:58 UTC (rev 375)
+++ gearbox/trunk/src/gbxsmartbatteryacfr/oceanserver.cpp 2009-01-31 07:50:48 UTC (rev 376)
@@ -45,7 +45,7 @@
ss << "OceanServer: " << __func__ << ": Caught a parsing exception: "
<< e.what() << endl
<< "This can happen sometimes. Will continue regardless.";
- tracer_.info( ss.str() );
+ tracer_.debug( ss.str(), 3 );
exceptionCounter_++;
if (exceptionCounter_ >= MAX_EXCEPTIONS_ROW)
Modified: gearbox/trunk/src/gbxsmartbatteryacfr/oceanserverreader.cpp
===================================================================
--- gearbox/trunk/src/gbxsmartbatteryacfr/oceanserverreader.cpp 2009-01-31 00:32:58 UTC (rev 375)
+++ gearbox/trunk/src/gbxsmartbatteryacfr/oceanserverreader.cpp 2009-01-31 07:50:48 UTC (rev 376)
@@ -76,7 +76,7 @@
void
OceanServerReader::checkConnection()
{
- tracer_.info( "OceanServerReader: Checking connection to serial port" );
+ tracer_.debug( "OceanServerReader: Checking connection to serial port", 3 );
// a blank will get us into menu mode
const char menuMode = ' ';
@@ -88,7 +88,7 @@
while(true)
{
ss.str(""); ss << "OceanServerReader: " << __func__ << ": Trying to read from serial port with timeout of " << TIMEOUT_SEC << "s" << endl;
- tracer_.info( ss.str() );
+ tracer_.debug( ss.str(), 3 );
// reading from serial port
string serialData;
@@ -99,14 +99,14 @@
// checking whether we are connected to an oceanserver system
if ( isOceanServerSystem(serialData) ) {
- tracer_.info( "OceanServerReader: We are connected to an Oceanserver system. Good." );
+ tracer_.debug( "OceanServerReader: We are connected to an Oceanserver system. Good.", 3 );
break;
}
// count the number of tries
numTries++;
ss.str(""); ss << "OceanServerReader: Trying to find out whether this is an oceanserver system. Attempt number " << numTries << "/" << MAX_TRIES << ".";
- tracer_.info( ss.str() );
+ tracer_.debug( ss.str(), 3 );
if ( numTries >= MAX_TRIES ) {
throw HardwareReadingException( ERROR_INFO, "Didn't recognize any of the strings. We may be connected to the wrong serial port.");
@@ -198,7 +198,7 @@
stringstream ss;
ss << "OceanServerReader: Caught ParsingException: " << e.what() << ". ";
ss << "It's not critical, we will try to find the beginning of a new record.";
- tracer_.info( ss.str() );
+ tracer_.debug( ss.str(), 3 );
firstTime_ = true;
// we have to rethrow, so that the caller knows that it may receive a corrupt record
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|