errorno log

This commit is contained in:
2021-09-01 17:47:55 +02:00
parent f3116808b3
commit 0b9dfba2d6

View File

@@ -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