From 0b9dfba2d67a316b72a5f826cf8b29c8ee73223a Mon Sep 17 00:00:00 2001 From: Jaro Date: Wed, 1 Sep 2021 17:47:55 +0200 Subject: [PATCH] errorno log --- TimeoutSerial.cpp | 2 ++ 1 file changed, 2 insertions(+) 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