diff --git a/TimeoutSerial.cpp b/TimeoutSerial.cpp index d59109d..77c7b68 100755 --- a/TimeoutSerial.cpp +++ b/TimeoutSerial.cpp @@ -25,6 +25,7 @@ #include #include #include +#include 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