diff --git a/simple_message/include/simple_message/socket/simple_socket.h b/simple_message/include/simple_message/socket/simple_socket.h index 61df3f59..83fbf79d 100644 --- a/simple_message/include/simple_message/socket/simple_socket.h +++ b/simple_message/include/simple_message/socket/simple_socket.h @@ -203,7 +203,8 @@ class SimpleSocket : public industrial::smpl_msg_connection::SmplMsgConnection void logSocketError(const char* msg, int rc) { - LOG_ERROR("%s, rc: %d, errno: %d", msg, rc, errno); + int errno_ = errno; + LOG_ERROR("%s, rc: %d. Error: '%s' (errno: %d)", msg, rc, strerror(errno_), errno_); } /**