supress disconnect message unles DEBUG is set

This commit is contained in:
Jeff Hill
2001-08-09 00:55:05 +00:00
parent 6c2303a958
commit 2c71674012
2 changed files with 12 additions and 8 deletions
+6 -4
View File
@@ -35,10 +35,12 @@ epicsTimerNotify::expireStatus tcpRecvWatchdog::expire ( const epicsTime & /* cu
{
if ( this->responsePending ) {
this->cancel ();
char hostName[128];
this->iiu.hostName ( hostName, sizeof (hostName) );
this->iiu.printf ( "CA server \"%s\" unresponsive after %g inactive sec - disconnecting.\n",
hostName, this->period );
# ifdef DEBUG
char hostName[128];
this->iiu.hostName ( hostName, sizeof (hostName) );
debugPrintf ( ( "CA server \"%s\" unresponsive after %g inactive sec - disconnecting.\n",
hostName, this->period ) );
# endif
this->iiu.forcedShutdown ();
return noRestart;
}
+6 -4
View File
@@ -30,10 +30,12 @@ tcpSendWatchdog::~tcpSendWatchdog ()
epicsTimerNotify::expireStatus tcpSendWatchdog::expire (
const epicsTime & /* currentTime */ )
{
char hostName[128];
this->iiu.hostName ( hostName, sizeof ( hostName ) );
this->iiu.printf ( "Request not accepted by CA server %s for %g sec. Disconnecting.\n",
hostName, this->period );
# ifdef DEBUG
char hostName[128];
this->iiu.hostName ( hostName, sizeof ( hostName ) );
debugPrintf ( ( "Request not accepted by CA server %s for %g sec. Disconnecting.\n",
hostName, this->period ) );
# endif
this->iiu.forcedShutdown ();
return noRestart;
}