int result = port.write_port( buf, length );
if ( result != length ) {
- SG_LOG( SG_IO, SG_ALERT, "Error writing data: " << device );
+ SG_LOG( SG_IO, SG_WARN, "Error writing data: " << device );
}
return result;
if ( s->send( buf, length ) < 0 )
{
- SG_LOG( SG_IO, SG_ALERT, "Error writing to socket: " << port );
+ SG_LOG( SG_IO, SG_WARN, "Error writing to socket: " << port );
error_condition = true;
}
bool error_condition = false;
if ( sock.send( buf, length, 0 ) < 0 ) {
- SG_LOG( SG_IO, SG_ALERT, "Error writing to socket: " << port );
+ SG_LOG( SG_IO, SG_WARN, "Error writing to socket: " << port );
error_condition = true;
return 0;
}