errorno log
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include <iostream>
|
||||
#include <boost/bind.hpp>
|
||||
#include <sys/ioctl.h>
|
||||
#include <boost/log/trivial.hpp>
|
||||
|
||||
using namespace std;
|
||||
using namespace boost;
|
||||
@@ -241,6 +242,7 @@ void TimeoutSerial::readCompleted(const boost::system::error_code& error,
|
||||
return;
|
||||
}
|
||||
|
||||
BOOST_LOG_TRIVIAL(debug) << "Error =" << error.value() ;
|
||||
//In case a asynchronous operation is cancelled due to a timeout,
|
||||
//each OS seems to have its way to react.
|
||||
#ifdef _WIN32
|
||||
|
||||
Reference in New Issue
Block a user